Instance Property


An array of focus environments to which the guide directs focus, ordered by priority.


var preferredFocusEnvironments: [UIFocusEnvironment]! { get set }


Setting this property to a nonempty array marks this guide's layoutFrame as focusable. If empty, this guide is effectively disabled.

If focused, the guide attempts to redirect focus to each environment in the array, in order, stopping when a focusable item in an environment has been found.

See Also

Enabling Focus

var isEnabled: Bool

A Boolean value that indicates whether the guide is focusable.

var preferredFocusedView: UIView?

The view that the focus will be redirected to if this guide is focused.