Generic Structure

Section

An affordance for creating hierarchical view content.

Declaration

struct Section<Parent, Content, Footer>

Topics

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.

Relationships

Conforms To

View

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.