Instance Method


Returns a standard description for a role and subrole.


func description(with subrole: NSAccessibility.Subrole?) -> String?


You should pass nil to this function if there is no subrole. This function returns a description of a standard role. For example, if you implement a button widget that does not inherit from NSButton, you should use this function to return a localized role description matching that returned by a standard button.

See Also

Describing a Role

static func description(for: Any) -> String?

Returns a standard role description for a user interface element.