UIFocusSystem
Queries and reevaluates the currently focused item.
Declaration
@MainActor class UIFocusSystemOverview
Use a UIFocusSystem object to obtain the focus-related state for the objects of your app. You can get state information for your app’s views, view controllers, windows, and other objects that adopt the UIFocusEnvironment protocol. The UIFocusSystem object lists the currently focused item, if any, for a window or view hierarchy. You can use it to force the system to update the focus state, and you can register custom sounds to be played during focus changes.
Topics
Getting a focus system object
Getting the currently focused item
Managing focus updates
Registering custom sounds
Responding to focus-related keys and notifications
animationCoordinatorUserInfoKeydidUpdateNotificationfocusUpdateContextUserInfoKeymovementDidFailNotification