TitledSupplementaryViewConfig
public struct TitledSupplementaryViewConfig<Item> : ReusableViewConfigProtocol
A TitledSupplementaryViewConfig is a specialized supplementary view config that conforms to ReusableViewConfigProtocol.
This config is responsible for producing and configuring TitledSupplementaryView instances.
-
Configures the
TitledSupplementaryViewfor the specified data item, collection view, and index path.Declaration
Swift
public typealias ConfigurationHandler = (TitledSupplementaryView, Item?, ReusableViewType, UICollectionView, IndexPath) -> TitledSupplementaryViewParameters
viewThe
TitledSupplementaryViewto be configured at the index path.itemThe item at the index path, or
nil.typeThe type of reusable view.
collectionViewThe collection view requesting this information.
indexPathThe index path at which the supplementary view will be displayed.
Return Value
The configured
TitledSupplementaryViewinstance.
-
Constructs a new
TitledSupplementaryView.Declaration
Swift
public init(configurator: @escaping ConfigurationHandler)Parameters
configuratorThe closure to configure the
TitledSupplementaryViewwith the backing data item.
View on GitHub
TitledSupplementaryViewConfig Structure Reference