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
TitledSupplementaryView
for the specified data item, collection view, and index path.Declaration
Swift
public typealias ConfigurationHandler = (TitledSupplementaryView, Item?, ReusableViewType, UICollectionView, IndexPath) -> TitledSupplementaryView
Parameters
view
The
TitledSupplementaryView
to be configured at the index path.item
The item at the index path, or
nil
.type
The type of reusable view.
collectionView
The collection view requesting this information.
indexPath
The index path at which the supplementary view will be displayed.
Return Value
The configured
TitledSupplementaryView
instance.
-
Constructs a new
TitledSupplementaryView
.Declaration
Swift
public init(configurator: @escaping ConfigurationHandler)
Parameters
configurator
The closure to configure the
TitledSupplementaryView
with the backing data item.