Mobile: Interface Builder - Runtime
If you haven't already installed, initialized and identified screens for Appcues Mobile in your app, make sure to go here first.
Accessibility can get very complex by adding in gesture, traits, etc. but for the purposes of Appcues ALL YOU HAVE TO DO IS SET A IDENTIFIER.
This approach is only for views that are accessible via Interface Builder (i.e. xib, storyboard, etc.). Views that are programmatically created refer to Accessibility ID: Programmatically.
Xcode allows you to set Accessibility IDs in Interface Builder in two ways. This article will outline one of the ways and Interface Builder - Accessibility outlines the second.
Repeat steps for all views:
- Go to any of the views and/or viewControllers within your project in Interface Builder
- Select a specific view element to tag (i.e. select an image, label, button, etc.)
- Go to Identity Inspector
In the User Defined Runtime Attributes Press the + button
In the Key Path write accessibilityIdentifier
Tip: Be sure to spell accessibilityIdentifier correctly. If it’s not spelt correctly the element won’t be tagged.
Change the Type to String
The Value field is where you set the identifier name. The more unique this is the better because we use this value to find the element to tag a tooltip to