With the Accessibility Inspector you can check the value for the most common accessibility attributes for individual elements, do some basic navigation, and even perform actions if the component is adjustable or if it has custom actions.

The accessibility inspector has a button that lets you select individual elements on a simulator or device. It is also possible to navigate element by element (like emulating left/right swipes with VoiceOver), automatically move through all the elements on screen, speak each element (rough VoiceOver emulation)… it is also possible to see what values the most common accessibility attributes have configured (label, value, traits, identifier, hint…). And even perform some actions: Activate, increment/decrement for adjustable components, and custom actions. A list of all the custom actions appear with a perform button next to it.

You may also find interesting...

There is an Environment Overrides panel in the toolbar on top of Xcode's Debug Area. It allows you to select some of the most common accessibility options and Dynamic Type sizes, like in the Accessibility Inspector, plus select dark/light mode.

UISliders are adjustable, and its default accessibility value is represented in percentages. But that's not always the best format to express a value. Consider a slider to select a distance radius. Miles or km seem a more appropriate unit. Example code in the image: ```swift override var accessibilityValue: String? { get { let formatter = MeasurementFormatter() let measurement = Measurement( value: Double(value), unit: .kilometers ) formatter.unitStyle = .long return formatter.string(from: measurement) } set {} } ```

If you need to send announcement notifications that can step into each other, they will by default, interrupt ongoing announcements. But you can pass attributed strings as parameters too, letting you specify announcements to be queued.

Created in Swift with Ignite.

Supporting Swift for Swifts