Contents

UIFocusGuide

An object that exposes nonview areas as focusable.

Declaration

@MainActor class UIFocusGuide

Mentioned in

Overview

As a subclass of UILayoutGuide, a focus guide is not a view and does not define a new view or participate in the view hierarchy at all, except as an Auto Layout guide. Unlike UILayoutGuide, UIFocusGuide represents an invisible, focusable region that can redirect focus movement to other views. The UIFocus.h header file, including its related classes and its protocol, creates a single high-level software interface for controlling focus in apps that use focus-based input. This programming interface also helps to control focus behavior on the screen.

Topics

Enabling focus

See Also

Focus guides