Section

public struct Section<Parent, Content> : View where Parent : View, Content : View

An affordance for creating hierarchical view content.

  • Initializes the Section with the supplied header and content views.

    Declaration

    Swift

    public init(header: Parent, @ViewBuilder content: () -> Content)
  • Declaration

    Swift

    public var body: some View { get }