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

    alignment

    The horizontal alignment guide for its children. Defaults to center.

    spacing

    The vertical distance between subviews. If not specified, the distance will be 0.

    content

    A 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