---
title: nextFocusedIndexPath
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewfocusupdatecontext/nextfocusedindexpath
---

# nextFocusedIndexPath

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

## Declaration

```swift
var nextFocusedIndexPath: IndexPath? { get }
```

## Discussion

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

- [previouslyFocusedIndexPath](uikit/uicollectionviewfocusupdatecontext/previouslyfocusedindexpath.md)
