Contents

isAccessibilityFocused()

Returns a Boolean value that indicates whether the accessibility element has the keyboard focus.

Declaration

optional func isAccessibilityFocused() -> Bool

Return Value

true if this element has the keyboard focus; otherwise, false.

Discussion

This method is the getter for the NSAccessibilityProtocol protocol’s accessibilityFocused property.

See Also

Supporting Accessibility