<!--
{
  "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/UICollectionViewFocusUpdateContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionViewFocusUpdateContext"
  },
  "title" : "UICollectionViewFocusUpdateContext"
}
-->

# UICollectionViewFocusUpdateContext

A context object that stores information specific to a focus update in a collection view.

```
@MainActor class UICollectionViewFocusUpdateContext
```

## Overview

When focus changes, the collection view delegate receives a context object with the relevant information. Your delegate methods use the information in this object to create animations or to perform other tasks related to the change in focus.

## Topics

### Locating focusable items in the collection view

[`previouslyFocusedIndexPath`](/documentation/UIKit/UICollectionViewFocusUpdateContext/previouslyFocusedIndexPath)

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

[`nextFocusedIndexPath`](/documentation/UIKit/UICollectionViewFocusUpdateContext/nextFocusedIndexPath)

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

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`UIFocusUpdateContext`](/documentation/UIKit/UIFocusUpdateContext)

---

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)