index(forSectionIdentifier:)
Returns an index for the section with the identifier you specify in the collection view.
Declaration
func index(forSectionIdentifier identifier: Any) -> IntReturns an index for the section with the identifier you specify in the collection view.
func index(forSectionIdentifier identifier: Any) -> Int