UIFocusEnvironment
A set of methods that define the focus behavior for a branch of the view hierarchy.
Declaration
@MainActor protocol UIFocusEnvironment : NSObjectProtocolOverview
The UIFocusEnvironment protocol provides a common interface for specifying and reacting to focus behavior throughout your app. Classes in UIKit that conform to this protocol include UIView, UIViewController, UIWindow, and UIPresentationController — in other words, classes that are either directly or indirectly in control of views on the screen.