Queries and reevaluates the currently focused item.
- iOS 11.0+
- Mac Catalyst 13.0+
- tvOS 11.0+
UIFocus 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
UIFocus protocol. The
UIFocus 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.