One Logo Pool Ball
UIKit · IOS API REFERENCE

UIFocusSystem

class · iOS 11.0+ · SDK 27.1

@MainActor class UIFocusSystem

Members (9)

get · iOS 11.0+

didUpdateNotification

TypeScript
static get didUpdateNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didUpdateNotification: NSNotification.Name
get · iOS 11.0+

movementDidFailNotification

TypeScript
static get movementDidFailNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let movementDidFailNotification: NSNotification.Name
get · iOS 11.0+

animationCoordinatorUserInfoKey

TypeScript
static get animationCoordinatorUserInfoKey(): Promise<string>
Swift declaration
class let animationCoordinatorUserInfoKey: String
get · iOS 11.0+

focusUpdateContextUserInfoKey

TypeScript
static get focusUpdateContextUserInfoKey(): Promise<string>
Swift declaration
class let focusUpdateContextUserInfoKey: String
init · iOS 12.0+ · Deprecated in iOS 15.0

init

TypeScript
static init(environment: SDKHandle): Promise<(UIFocusSystem) | null>
Swift declaration
init?(for environment: any UIFocusEnvironment)
method · iOS 12.0+

requestFocusUpdate

TypeScript
requestFocusUpdate(environment: SDKHandle): Promise<void>
Swift declaration
func requestFocusUpdate(to environment: any UIFocusEnvironment)
method · iOS 12.0+

updateFocusIfNeeded

TypeScript
updateFocusIfNeeded(): Promise<void>
Swift declaration
func updateFocusIfNeeded()
get · iOS 12.0+

focusedItem

TypeScript
get focusedItem(): Promise<(SDKHandle) | null>
Swift declaration
weak var focusedItem: (any UIFocusItem)? { get }
static · iOS 15.0+

focusSystem

TypeScript
static focusSystem(environment: SDKHandle): Promise<(UIFocusSystem) | null>
Swift declaration
@MainActor @preconcurrency class func focusSystem(for environment: any UIFocusEnvironment) -> UIFocusSystem?

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIFocusSystem.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All UIKit types →