Agenda
—Why apps?
—What is it?
—Why accessibility?
—Demo
—Gratuitous GIF
—Tools at your disposal
—Keep accessibility in mind
Slide 4
Slide 4 text
Why apps?
Slide 5
Slide 5 text
What is accessibility?
Accessibility is inclusivity.
Slide 6
Slide 6 text
Why accessibility?
Perfect apps, for everyone.
Slide 7
Slide 7 text
Demo
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
Tools at your disposal
—Traits
—Label
—Value
—Containers
—Actions
Slide 10
Slide 10 text
Custom components
isAccessibilityElement
Assistive technologies (like VoiceOver or Switch
Control) only recognize elements with this property
enabled.
Slide 11
Slide 11 text
Custom components
accessibilityTraits
Describes the element with traits such as
NotEnabled, Button, StaticText, Image,
Adjustable, etc.
Slide 12
Slide 12 text
Tools
accessibilityLabel
Describes the component. By default, UIKit controls
have useful default values. A UILabel reads its
text; a UIButton reads its currentTitle.
Slide 13
Slide 13 text
Tools
accessibilityValue
Describes the value of a component. For a slider, its
value; a switch, its "on" state.
Slide 14
Slide 14 text
IB Support
Slide 15
Slide 15 text
Actions
accessibilityCustomActions
An array of actions, each with a localized title, and a
target-action pair for invocation.
Slide 16
Slide 16 text
Actions
accessibilityActivate()
Performs an action when the user activates the
item, by selecting the item and double tapping the
screen.
Most accessibility action methods return true to
indicate success, or false to bubble up the event.
Slide 17
Slide 17 text
Actions
accessibilityIncrement()
accessibilityDecrement()
Override these methods to increment or decrement
the value of your custom component, such as a
slider or other adjustable control.
Required if your component has the Adjustable
accessibility trait.
Slide 18
Slide 18 text
Actions
accessibilityPerformMagicTap()
Toggle the most important state of your app:
—Phone: Answers or ends phone calls
—Music: Plays or pauses music
—Clock: Starts or stops the timer
—Camera: Takes a picture
Slide 19
Slide 19 text
Actions
accessibilityPerformEscape()
Implement this method on an element or containing
view to dismiss it.
—Popover: dismiss action
—Alert: perform cancel action
Slide 20
Slide 20 text
Keep accessibility in mind
—Persuade management that implementing
accessibility will increase your potential user
base.
—Include accessibility implementation and testing
time in feature time estimates.
—Don't leave everything until the last week.