A string value describing the user interface element type; for example, a button.
SDK
- macOS 10.12+
Framework
- Sprite
Kit
A string value describing the user interface element type; for example, a button.
SDK
Framework
var accessibility Children: [Any]?
An array of user interface elements that represent children of this element.
var accessibility Frame: CGRect
The size of this user interface element, in screen points.
var accessibility Help: String?
The help description of this user interface element; for example, the text shown in a tooltip.
var accessibility Label: String?
A short description of this user interface element.
var accessibility Parent: Any Object?
The user interface element that contains this element.
var accessibility Role Description: String?
A string value describing the user interface element name and type; for example, the Buy button.
var accessibility Subrole: String?
A string that defines this user interface element's subrole; for example, a full-screen button.
var is Accessibility Element: Bool
A toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
var is Accessibility Enabled: Bool
A toggle you implement to indicate to the system whether this user interface element should respond to user input.
func accessibility Hit Test(CGPoint) -> Any?
Returns the frontmost user interface element in the element hierarchy.