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.

protocol UIFocusItemContainer

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

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

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 apps accessible to everyone, including people with disabilities.