Contents

indexOfItem(_:)

Returns the index of the item in the snapshot with the specified identifier.

Declaration

func indexOfItem(_ identifier: ItemIdentifierType) -> Int?

Parameters

  • identifier:

    The identifier of the item in the snapshot.

Return Value

The index of the item in the snapshot, or nil if the item with the specified identifier doesn’t exist in the snapshot. This index value is 0-based.

See Also

Identifying items and sections