Contents

UIFocusItem

An object that can become focused.

Declaration

@MainActor protocol UIFocusItem : UIFocusEnvironment

Overview

An object that conforms to the UIFocusItem protocol is capable of participating in the focus system; further, only UIFocusItem objects can be focused.

Even when an object that conforms to UIFocusItem isn’t currently focusable, it may still have an effect on the focus system. For example, items that aren’t focusable, but that completely obscure other items, may prevent those other items from being focusable, because they aren’t visible to the user. Also, because UIFocusItem conforms to UIFocusEnvironment, items that aren’t focusable may still affect the focus behavior of items they contain, or react to focus updates.

Topics

Determining focusability

Retrieving the item frame

Determining the focus priority

Providing movement hints

Indicating focus visually

Working with transparent items

Instance Properties

See Also

Focus interactions