Instance Property

accessibilityFrame

The frame of the accessibility element, in screen coordinates.

Declaration

var accessibilityFrame: CGRect { get set }

Discussion

The default value for this property is CGRectZero unless the receiver is a UIView object or is a subclass of UIView, in which case the value is the frame of the view.

You must set this property for an accessibility element that represents an object that is not a subclass of UIView, because the screen coordinates of such an object are not already known. (You do not have to set this property for an accessibility element that represents a subclass of UIView, because such an object’s screen coordinates are already known.)

See Also

Navigating Elements

UIAccessibilityContainer

Provide a set of methods that view subclasses use to make subcomponents accessible as separate elements.

var accessibilityActivationPoint: CGPoint

The activation point for the accessibility element, in screen coordinates.

var accessibilityFocusedUIElement: Any?

The deepest descendant of the accessibility hierarchy that has the focus.

func accessibilityHitTest(NSPoint) -> Any?

Returns the deepest descendant of the accessibility hierarchy that contains the specified point.

var accessibilityNavigationStyle: UIAccessibilityNavigationStyle

The navigation style to apply to the object and its elements.

enum UIAccessibilityNavigationStyle

Constants that describe how an object’s elements should be navigated by an assistive technology.

var accessibilityPath: UIBezierPath?

The path of the element, in screen coordinates.

static func zoomFocusChanged(zoomType: UIAccessibility.ZoomType, toFrame: CGRect, in: UIView)

Notifies the system that the app’s focus has changed to a new location.

enum UIAccessibility.ZoomType

The types of system zoom that can be in effect.