<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewFocusUpdateContext/previouslyFocusedIndexPath",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewFocusUpdateContext(py)previouslyFocusedIndexPath"
  },
  "title" : "previouslyFocusedIndexPath"
}
-->

# previouslyFocusedIndexPath

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

```
var previouslyFocusedIndexPath: IndexPath? { get }
```

## Discussion

This property returns the index path only when the [`previouslyFocusedView`](/documentation/UIKit/UIFocusUpdateContext/previouslyFocusedView) is located within a cell of the table view. Otherwise, it returns `nil`. This can happen if focus is moving into the table view, because the [`previouslyFocusedView`](/documentation/UIKit/UIFocusUpdateContext/previouslyFocusedView) 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`](/documentation/UIKit/UITableViewFocusUpdateContext/previouslyFocusedIndexPath) and [`nextFocusedIndexPath`](/documentation/UIKit/UITableViewFocusUpdateContext/nextFocusedIndexPath) configured for its specific table view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)