setAccessibilityIdentifier(_:)
Sets the unique identifier string for the interface object.
Declaration
func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)Parameters
- accessibilityIdentifier:
A string containing the identifier of the element. Specify
nilto clear the existing identifier.
Discussion
Use the identifier in this property to distinguish between different objects in your app. The identifier string is used solely for programmatic identity, as opposed to many other accessibility attributes.