Instance Property

focusedView

The view that is currently focused.

Declaration

weak var focusedView: UIView? { get }

Discussion

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.