Instance Property

nextFocusedIndexPath

The index path of the collection view cell that is receiving the focus.

Declaration

var nextFocusedIndexPath: IndexPath? { get }

Discussion

This property contains the index path only when the view receiving focus belongs to a cell of the collection view. If focus is moving to a view outside of the collection view and its cells, this property is nil.

See Also

Locating Focusable Items in the Collection View

var previouslyFocusedIndexPath: IndexPath?

The index path of the collection view cell that previously had the focus.