Contents

indexOfSection(_:)

Returns the index of the section of the snapshot with the specified identifier.

Declaration

func indexOfSection(_ identifier: SectionIdentifierType) -> Int?

Parameters

  • identifier:

    The identifier of the section of the snapshot.

Return Value

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

See Also

Identifying Items and Sections