Mobile: Interface Builder - Accessibility

Accessibility can get very complex by adding in gesture, traits, etc. but for the purposes of Appcues ALL YOU HAVE TO DO IS ENABLE ACCESSIBILITY AND 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 reference to Accessibility ID: Programmatically. 

Xcode allows you to set Accessibility IDs in two ways. This article will outline one of the ways and Interface Builder - Runtime outlines the second. 

Repeat steps for all views:

  1. Go to any of the views and/or viewcontrollers within your project in Interface Builder
  2. Select a specific element to tag (i.e. select an image, label, button, etc.)
  3. Go to Identity Inspector

  4. Set the Identifier with the appropriate name that is unique to that element. The more unique to better. 

Still need help? Contact Us Contact Us