Protocol

UIFocusItem

A protocol—not intended for conformance by third-party classes—that lets an item declare its ability to participate in the focus system.

Overview

An object that conforms to the UIFocusItem protocol is capable of participating in the focus system; further, only UIFocusItem objects can be focused.

Even when an object that conforms to UIFocusItem is not currently focusable, it may still have an effect on the focus system. For example, items that are not focusable, but that completely obscure other items, may prevent those other items from being focusable, because they are not visible to the user. Also, because UIFocusItem conforms to UIFocusEnvironment, items that are not focusable may still affect the focus behavior of items they contain, or react to focus updates.

Topics

Determining Focusability

var canBecomeFocused: Bool

A Boolean value that indicates whether the item can become focused.

Required.

Instance Properties

Relationships

Inherits From

Adopted By

See Also

Focus Interactions

class UIFocusGuide

An object that exposes nonview areas as focusable.

class UIFocusSystem

The current state of the user interface's focus system.

Beta
protocol UIFocusEnvironment

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

class UIFocusUpdateContext

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

class UIFocusAnimationCoordinator

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

class UIFocusDebugger

A runtime object for debugging focus-related interactions.

Beta