Section
struct · iOS 13.0+ · SDK 27.1
struct Section<Parent, Content, Footer>A container view that you can use to add hierarchy within certain views. Use `Section` instances in views like ``List``, ``Picker``, and ``Form`` to organize content into separate sections. Each section has custom content that you provide on a per-instance basis. You can also provide headers and footers for each section. ### Collapsible sections Create sections that expand and collapse by using an initializer that accepts an `isExpanded` binding. A collapsible section in a ``List`` that uses the ``ListStyle/sidebar`` style shows a disclosure indicator next to the section's header. Tapping on the disclosure indicator toggles the appearance of the section's content. > Note: Not all contexts provide a default control to trigger collapse or expansion.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
23 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Section.init(content:header:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(isExpanded:content:header:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:isExpanded:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:isExpanded:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(_:isExpanded:content:)
This declaration needs Swift generic type arguments. (no canonical witness for Content)
Section.init(content:header:footer:)
callback cannot propagate synchronous failure
Section.init(content:footer:)
callback cannot propagate synchronous failure
Section.init(content:header:)
callback cannot propagate synchronous failure
Section.init(content:)
callback cannot propagate synchronous failure
Section.init(_:content:)
callback cannot propagate synchronous failure
Section.init(_:content:)
callback cannot propagate synchronous failure
Section.init(_:content:)
callback cannot propagate synchronous failure
Section.init(isExpanded:content:header:)
callback cannot propagate synchronous failure
Section.init(_:isExpanded:content:)
callback cannot propagate synchronous failure
Section.init(_:isExpanded:content:)
callback cannot propagate synchronous failure
Section.init(_:isExpanded:content:)
callback cannot propagate synchronous failure
Section.init(header:footer:content:)
callback cannot propagate synchronous failure
Section.init(footer:content:)
callback cannot propagate synchronous failure
Section.init(header:content:)
callback cannot propagate synchronous failure