focusSystem(for:)
Retrieves the focus system for the specified environment.
Declaration
@MainActor @preconcurrency class func focusSystem(for environment: any UIFocusEnvironment) -> UIFocusSystem?Parameters
- environment:
The environment that the focus system contains.
Discussion
This method returns nil if focus interaction isn’t supported or if the environment isn’t associated with a focus system.