isAccessibilityFocused()
Returns a Boolean value that indicates whether the accessibility element has the keyboard focus.
Declaration
optional func isAccessibilityFocused() -> BoolReturn Value
true if this element has the keyboard focus; otherwise, false.
Discussion
This method is the getter for the NSAccessibilityProtocol protocol’s accessibilityFocused property.