Type Method


Returns a standard role description for a user interface element.


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


This function is like the description(with:) function, except that it queries element to get the role and subrole. The description(with:) function is more efficient, but this function is useful for accessorizing base classes so that they properly handle derived classes, which may override the subrole or even the role.

See Also

Describing a Role

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

Returns a standard description for a role and subrole.