Generic Structure


An affordance for creating hierarchical view content.


struct Section<Parent, Content, Footer>


Creating a Section

init(content: () -> Content)
init(footer: Footer, content: () -> Content)
init(header: Parent, content: () -> Content)
init(header: Parent, footer: Footer, content: () -> Content)

Indicating Collapsibility

func collapsible(Bool) -> View

Applying Standard Modifiers

View Modifiers

Configure this view and the views it contains by applying standard modifiers.


Conforms To


See Also

Container Views

struct Form

A container for grouping controls used for data entry, such as in settings or inspectors.

struct Group

An affordance for grouping view content.

struct GroupBox

A stylized view with an optional label that is associated with a logical grouping of content.