Contents

index(ofItemIdentifier:)

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

Declaration

func index(ofItemIdentifier itemIdentifier: Any) -> Int

Parameters

  • 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.

See Also

Identifying items and sections