HStack

public struct HStack : View

A view that arranges its children in a horizontal line. same as the flex-direction: row in flexbox layout.

     HStack {
         Text("1")
         Text("2")
         Text("3")
     }
  • The node behind the HStack.

    Declaration

    Swift

    public var node: ArgoKitNode? { get }
  • Initializer

    Declaration

    Swift

    public init()
  • Initializer

    Declaration

    Swift

    public init(@ArgoKitViewBuilder _ builder: @escaping () -> View)

    Parameters

    builder

    A view builder that creates the content of this stack.