Contents

UICollectionLayoutListConfiguration.ItemSeparatorHandler

A closure that provides granular control over list separator appearance.

Declaration

typealias ItemSeparatorHandler = (IndexPath, UIListSeparatorConfiguration) -> UIListSeparatorConfiguration

Parameters

  • indexPath:

    The Indexpath of the cell to configure separators for.

  • sectionSeparatorConfiguration:

    The list section’s separator configuration for the cell at indexPath. This configuration contains the values for separator visibility and insets according to the current state of the item.

Return Value

The configuration to use for the separators at indexPath.

See Also

Configuring separators