index(for:)
Returns an index for the section with the identifier you specify in the collection view.
Declaration
@MainActor @preconcurrency func index(for sectionIdentifier: SectionIdentifierType) -> Int?Returns an index for the section with the identifier you specify in the collection view.
@MainActor @preconcurrency func index(for sectionIdentifier: SectionIdentifierType) -> Int?