Focus-based Navigation

Navigate the interface of your UIKit app using a remote or game controller.

Topics

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.

UIFocusEnvironment

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

UIFocusSystem

Queries and reevaluates the currently focused item.

UIFocusUpdateContext

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

UIFocusItem

An object that can become focused.

UIFocusMovementHint

Provides movement hint information for the focused item.

UIFocusItemContainer

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

UIFocusItemScrollableContainer

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

Focus Guides

Creating Custom Navigation Interactions

Build nonstandard navigation interactions that move focus to the desired location.

UIFocusGuide

An object that exposes nonview areas as focusable.

Debugging Support

Debugging Focus Issues in Your App

Find errors and determine why the next focused item isn't what you expected.

UIFocusDebugger

A runtime object for debugging focus-related interactions.

Animations

UIFocusAnimationCoordinator

A coordinator of focus-related animations during a focus update.

See Also

User Interactions

Touches, Presses, and Gestures

Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.

Drag and Drop

Bring drag and drop to your app by using interaction APIs with your views.

Pencil Interactions

Handle double-tap interactions that a user makes on Apple Pencil.

Menus and Shortcuts

Simplify interactions with your app using menu systems, contextual menus, Home screen quick actions, and keyboard shortcuts.

Accessibility

Make your apps accessible to everyone, including people with disabilities.