---
title: UICollectionLayoutListConfiguration.ItemSeparatorHandler
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uicollectionlayoutlistconfiguration-swift.struct/itemseparatorhandler-swift.typealias
---

# UICollectionLayoutListConfiguration.ItemSeparatorHandler

A closure that provides granular control over list separator appearance.

## Declaration

```swift
typealias ItemSeparatorHandler = (IndexPath, UIListSeparatorConfiguration) -> UIListSeparatorConfiguration
```

## Parameters

- `indexPath`: The doc://com.apple.documentation/documentation/Foundation/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

Return Value The configuration to use for the separators at indexPath.

## See Also

### Configuring separators

- [showsSeparators](uikit/uicollectionlayoutlistconfiguration-swift.struct/showsseparators.md)
- [separatorConfiguration](uikit/uicollectionlayoutlistconfiguration-swift.struct/separatorconfiguration.md)
- [UIListSeparatorConfiguration](uikit/uilistseparatorconfiguration-swift.struct.md)
- [itemSeparatorHandler](uikit/uicollectionlayoutlistconfiguration-swift.struct/itemseparatorhandler-swift.property.md)
