Class

UICollectionViewFocusUpdateContext

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

Declaration

@interface 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

previouslyFocusedIndexPath

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

nextFocusedIndexPath

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

Relationships

See Also

Layout Updates

NSCollectionLayoutVisibleItem

An item that's currently visible within the bounds of a section.

NSCollectionLayoutSectionVisibleItemsInvalidationHandler

A closure called before each layout cycle to allow modification of items in a section immediately before they are displayed.

UICollectionViewUpdateItem

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

UICollectionViewLayoutInvalidationContext

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