indexPathsForVisibleSupplementaryElements(ofKind:)
Gets the index paths of all visible supplementary views of the specified type.
Declaration
func indexPathsForVisibleSupplementaryElements(ofKind elementKind: String) -> [IndexPath]Parameters
- elementKind:
The kind of supplementary view to locate. This value is defined by the layout object. This parameter must not be
nil.
Return Value
An array of NSIndexPath objects, each of which corresponds to a visible supplementary view in the collection view. If there are no visible supplementary views, this method returns an empty array.