Protocol

UIFocusItemContainer

The container responsible for providing geometric context to focus items within a given focus environment.

Declaration

protocol UIFocusItemContainer

Overview

Focus item containers are used by the focus engine to find focus items for a focus environment in specific geometric regions.

Topics

Retrieving Focus Items

func focusItems(in: CGRect) -> [UIFocusItem]

Retrieves all of the focus items within this container that intersect with the provided rectangle.

Required.

var coordinateSpace: UICoordinateSpace

The coordinate space of the focus items contained in the focus item container.

Required.

Relationships

Inherits From

Conforming Types

See Also

Focus Interactions

About Focus Interactions for Apple TV

Design and implement intuitive control schemes for menus and interactive user interface layouts.

Adding User-Focusable Elements to a tvOS App

Create intuitive and easily manipulated user-interactive controls for your tvOS app.

protocol UIFocusEnvironment

A set of methods that define the focus behavior for a branch of the view hierarchy.

class UIFocusSystem

Queries and reevaluates the currently focused item.

class UIFocusUpdateContext

An object that provides information relevant to a specific focus update from one view to another.

protocol UIFocusItem

An object that can become focused.

class UIFocusMovementHint

Provides movement hint information for the focused item.

protocol UIFocusItemScrollableContainer

A type of focus item container that supports automatic scrolling of focusable content.