---
title: UICollectionViewFocusUpdateContext
framework: uikit
role: symbol
role_heading: Class
path: uikit/uicollectionviewfocusupdatecontext
---

# UICollectionViewFocusUpdateContext

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

## Declaration

```swift
@MainActor class UICollectionViewFocusUpdateContext
```

## Overview

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](uikit/uicollectionviewfocusupdatecontext/previouslyfocusedindexpath.md)
- [nextFocusedIndexPath](uikit/uicollectionviewfocusupdatecontext/nextfocusedindexpath.md)

## Relationships

### Inherits From

- [UIFocusUpdateContext](uikit/uifocusupdatecontext.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Layout updates

- [NSCollectionLayoutVisibleItem](uikit/nscollectionlayoutvisibleitem.md)
- [NSCollectionLayoutSectionVisibleItemsInvalidationHandler](uikit/nscollectionlayoutsectionvisibleitemsinvalidationhandler.md)
- [UICollectionViewUpdateItem](uikit/uicollectionviewupdateitem.md)
- [UICollectionViewLayoutInvalidationContext](uikit/uicollectionviewlayoutinvalidationcontext.md)
