Focus Interactions

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.

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.

Beta
protocol UIFocusItemContainer

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

Beta
protocol UIFocusItemScrollableContainer

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

Beta

Focus Guides

Creating Custom Navigation Interactions

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

class 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.

class UIFocusDebugger

A runtime object for debugging focus-related interactions.

Animations

class 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.

Peek and Pop

Use 3D Touch input to display custom previews and actions for your content.

Keyboard and Menus

Handle keyboard input, and display a menu of custom actions.

Accessibility

Make your app more accessible to users with disabilities.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software