Slide 1

Slide 1 text

iOS Accessibility Not a question anymore ! Romain VINCENS @romainvincens CocoaHeads Strasbourg March 3rd, 2016

Slide 2

Slide 2 text

– OS X Dictionary “The quality of being easily reached, entered, or used by people who have a disability”

Slide 3

Slide 3 text

• Built in iOS and OS X • Focusing mainly on visual disability • Main technology is VoiceOver

Slide 4

Slide 4 text

Demo

Slide 5

Slide 5 text

Developers • UIAccessibility protocol NSObject(UIAccessibility) • Built in UIKit • Most of the work is done for free ! • But beware of your custom UI

Slide 6

Slide 6 text

Customization • isAccessibilityElement : On/Off • accessibilityLabel : what’s spoken by VoiceOver • accessibilityValue : ex for a UITextField or UISlider • accessibilityHint : indicates what actioning the UI element will do • accessibilityTraits : what’s the nature or the characteristics of the UI element • accessibilityFrame : where the element is on screen

Slide 7

Slide 7 text

VO Notifications • Pronounce any text • Notify VO from a major layout change • Helper

Slide 8

Slide 8 text

VO Notifications • Demo : get the VO status and adapt your UI

Slide 9

Slide 9 text

Implementing UIAccessibility • Drawing a custom UI element • Need to define its nature, its elements to be spoken, how to interact, what needs to be selected …

Slide 10

Slide 10 text

Tips and tricks • view.alpha = 0.0 : still visible for VO. Use hidden instead • Think about internationalization • Element order in Interface Builder may have an influence on VO

Slide 11

Slide 11 text

Pros • Generally easy to setup • Widen your audience • Proud of meticulous work • Marketing boost

Slide 12

Slide 12 text

Cons • Cannot suit all types of projects (ex: video games, photos app) • Might be hard/long to apply to an existing (old) project (number of screens, custom UI etc…)

Slide 13

Slide 13 text

–Gwen Stefani “What you waiting for ?”