index(ofItemIdentifier:)
Returns the index of the item in the snapshot with the specified identifier.
Declaration
func index(ofItemIdentifier itemIdentifier: Any) -> IntParameters
- itemIdentifier:
The identifier of the item in the snapshot.
Return Value
The index of the item in the snapshot, or NSNotFound if the item with the specified identifier doesn’t exist in the snapshot. This index value is 0-based.