Section
public struct Section<Item>
Represents and manages a section of items.
-
The elements in the section.
Declaration
Swift
public var items: [Item] -
The header title for the section.
Declaration
Swift
public let headerTitle: String? -
The footer title for the section.
Declaration
Swift
public let footerTitle: String? -
The number of elements in the section.
Declaration
Swift
public var count: Int { get }
-
Constructs a new section.
Declaration
Swift
public init(items: Item..., headerTitle: String? = nil, footerTitle: String? = nil)Parameters
itemsThe elements in the section.
headerTitleThe section header title.
footerTitleThe section footer title.
-
Constructs a new section.
Declaration
Swift
public init(_ items: [Item], headerTitle: String? = nil, footerTitle: String? = nil)Parameters
itemsThe elements in the section.
headerTitleThe section header title.
footerTitleThe section footer title.
-
Declaration
Swift
public subscript(index: Int) -> Item { get set }Parameters
indexThe index of the item to return.
Return Value
The item at
index.
View on GitHub
Section Structure Reference