accessibilityElementIsFocused()
Returns a Boolean value indicating whether an assistive technology is focused on the accessibility element.
Declaration
@MainActor func accessibilityElementIsFocused() -> BoolReturn Value
YES if an assistive technology is virtually focused on the element; otherwise, NO.