Instance Property


The view that is currently focused.


weak var focusedView: UIView? { get }


When a view has focus, this property contains that view. When the focus is on an item that is not a view, the view in this property is the one that contains the item. This property is nil when nothing is currently focused on the screen.

See Also

Handling Focus Change on the Screen

var focusedItem: UIFocusItem?

The item that is currently focused.

var supportsFocus: Bool

A Boolean value that indicates whether the screen supports focus-based inputs.