Class

UICollectionViewFocusUpdateContext

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

Declaration

class UICollectionViewFocusUpdateContext : UIFocusUpdateContext

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

var previouslyFocusedIndexPath: IndexPath?

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

var nextFocusedIndexPath: IndexPath?

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

Relationships

Conforms To

See Also

Layout Updates

class UICollectionViewUpdateItem

An object that describes a single change to make to an item in a collection view.

class UICollectionViewLayoutInvalidationContext

A context object that declares which parts of your layout need to be updated when the layout is invalidated.

class UICollectionViewFlowLayoutInvalidationContext

A set of properties for determining whether to recompute the size of items or their position in the layout.