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

# nextFocusedIndexPath

Returns the index path of the cell containing the context’s next focused view.

## Declaration

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

## Discussion

Discussion This property returns the index path only when the nextFocusedView is located within a cell of the table view. Otherwise, it returns nil. This can happen if focus is moving out of the table view, because the nextFocusedView isn’t associated with an index path in this table view. When focus is moving from one table view to another, each table view delegate is called with previouslyFocusedIndexPath and nextFocusedIndexPath configured for its specific table view.

## See Also

### Locating focusable items in a table view

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