Skip to content

iOS

How to tag views?

Why should you tag iOS views?

Whatfix Mobile identifies the screen of native apps uniquely with the accessibility Identifier property of an element. Adding this property helps in identifying the element and hence the screen more accurately.

Add Accessibility Identifier to a view

Info:

Set accessibility Identifier to make it uniquely identifiable on the current screen.

Swift

 view.accessibilityIdentifier = "cart_button" // unique identifier forthe view

Objective C

view.accessibilityIdentifier = @"cart_button";