Why tag iOS Views?

Leap identifies a screen of native apps uniquely with properties of an element like accessibility identifier , accessibility labeland tag in the screen. Adding these properties will help in identifying the element and hence the screen more accurately

How to add TAG, Accessibility Identifier & Accessibility Label to a view

view.tag = 101 // unique value for the view
view.accessibilityLabel = "cart_button" // unique label for the view
view.accessibilityIdentifier = "cart_button" // unique identifer for the view
view.tag = 101;
view.accessibilityLabel = @"cart_button";
view.accessibilityIdentifier = @"cart_button";
You can set either tag, accessibilityLabel or accessibilityIdentifier to make it uniquely identifiable on the current screen.