VStack
public struct VStack : View
extension VStack: Renderable
This view arranges subviews vertically.
-
Declaration
Swift
public var viewStore: ViewValues -
Creates an instance of a view that arranges subviews vertically.
Declaration
Swift
public init(alignment: HorizontalAlignment = .center, spacing: CGFloat? = nil, @ViewBuilder content: () -> View)Parameters
alignmentThe horizontal alignment guide for its children. Defaults to
center.spacingThe vertical distance between subviews. If not specified, the distance will be 0.
contentA view builder that creates the content of this stack.
-
Declaration
Swift
public var body: View { get } -
Declaration
Swift
public func updateView(_ view: UIView, context: Context) -
Declaration
Swift
public func createView(context: Context) -> UIView
View on GitHub
VStack Structure Reference