focusedElement(using:)
Returns the accessibility element that’s currently in focus by the specified assistive app.
Declaration
@MainActor static func focusedElement(using assistiveTechnologyIdentifier: UIAccessibility.AssistiveTechnologyIdentifier?) -> Any?Return Value
The element that is currently focused by the specified assistive technology or the element that was most recently focused, if no technology is specified.