0:00:00Hello and welcome to Developing Perspectives. Developing Perspective is a podcast discussing
0:00:04news of note in iOS development, Apple and the like. I'm your host, David Smith. I'm
0:00:08an independent iOS developer based in Herndon, Virginia. This is show number 188, and today
0:00:14is Friday, June 20th. Developing Perspective is never longer than 15 minutes, so let's
0:00:18get started. So first thing I was just going to mention is an update to a site that I found
0:00:25quite useful and I figured I'd mention it here. As we're all kind of going through all
0:00:30the content that came out of WWDC, try to get through all the videos, listen to them,
0:00:34watch them, whatever we can to get through. I think it's 106 videos or something like
0:00:39that. It's quite a lot of content to get through. But something that Matt Thompson has put together
0:00:46that is a useful resource that I've run into many -- used many times and so I've mentioned
0:00:50here, is a site called ASCII WWDC. There's a link in the show notes to it. Basically,
0:00:56it's a way he took, he extracts the transcript tracks from the videos, I think, and then,
0:01:04you know, provides them in a searchable interface. So it's just really useful, I find. If you're
0:01:08curious what was said at WWDC about a specific technology, you can go in and search and say,
0:01:14"Hey, show me all the WWDC videos that involved," whatever, "UI search controller," or something
0:01:19like that. And so I just mentioned it here, I find it really helpful as I'm trying to
0:01:23navigate what it is exactly I'm going to be doing over the next two months in my work
0:01:28to be able to kind of make sure that I'm touching on all the places in the videos that that
0:01:33particular topic was covered. All right, so the main topic I'm going to be diving into
0:01:38today is talking a little bit about accessibility. This is coming out of a update that I did
0:01:44for pedometer++ before W2C, I think, and it was a topic that I mentioned a little bit
0:01:50at the time, but I didn't really have time to go into it in great detail. And so given
0:01:54that this is a fairly slow week, I figured I'd dive into it now.
0:02:00So accessibility, it's probably fair to start off talking about what I mean by that. And
0:02:06specifically I'm going to be focused on the accessibility elements of things like voice
0:02:11VoiceOver in iOS. Focus mostly on the visual impairments. Obviously there's a variety of
0:02:16different accessibilities, aspects of your software you build. People with different
0:02:22impairments would require software that would be built in a specific way. But the one that
0:02:26I'm going to focus on mostly is on VoiceOver and otherwise in general focused on building
0:02:34applications for the visually impaired. And accessibility is a tricky topic sometimes
0:02:40in the sense that I think it's an important part of software development, not necessarily
0:02:45in so much as it is strictly a way to further your business or the financial of your application.
0:02:55I think sometimes that can be the case. The visually impaired community is very vocal
0:03:01and is very good about rewarding good apps, in my experience. But moreover, there's just
0:03:08a certain amount of it's just the right thing to do. And sometimes you do things just because
0:03:12they're the right thing to do, not necessarily because you'll see a strict return on it.
0:03:18But making an application that appeals to a broader audience, you know, certainly has
0:03:23some return to it. So I would encourage everybody to do it. In my experience, it's relatively
0:03:28easy. The amount of work it takes is certainly not overwhelming. And the impact that that
0:03:33can have in someone's life is quite dramatic. There's, on a personal level, there's nothing
0:03:38quite, you know, there are a few things in my experience when I get a help desk request
0:03:43from somebody who talks about how my application has allowed them to do something that they
0:03:47couldn't otherwise do. And as a result, you know, has enriched their life and made it
0:03:53better. That's quite dramatic. That is something that will sit with you in a way that a lot
0:03:59of the other work that I do doesn't. You know, when you're really having an impact on people's
0:04:03lives, that feels awesome. And maybe that's just as selfish as wanting it to pay off financially,
0:04:11but either way, it's something that I've found to be worthwhile doing. So I'm going to kind
0:04:16of dive into that a little bit. And what I'm going to focus on more is not so much the
0:04:20basics of accessibility. I'll mention them briefly. I'm going to focus more on what I
0:04:23would call thoughtful accessibility. And this is coming out of my own experiences recently.
0:04:29If you're curious about the general overviews of accessibility, there are tons of W3C videos
0:04:34about it.
0:04:35Apple really emphasizes it, but spends a lot of time on it.
0:04:38And so there's a lot of places to go.
0:04:40Just look for all W3C videos about accessibility for the actual technical details of it.
0:04:45But at a high level, accessibility is about providing an alternative way to interact with
0:04:50your application.
0:04:51You want to make it so that if someone has trouble seeing the screen, they can still
0:04:56get useful value out of it.
0:04:59And there's obviously various degrees of that on the spectrum,
0:05:03all the way from someone who is completely blind
0:05:05and is interacting with your application entirely
0:05:08by touch and sound, versus somebody
0:05:10for whom it is just difficult to read small text,
0:05:14or is colorblind, or those types of things.
0:05:17And so there's different things that you'll do along the way.
0:05:20But there's a lot of technical things
0:05:22that you'll do to address that.
0:05:23So there's a system inside of iOS called VoiceOver.
0:05:27And this is probably the core part of what
0:05:29you're going to be looking at.
0:05:30And VoiceOver is a system extension
0:05:34that will read elements on the screen to the user
0:05:37based on certain gestures and things that they do.
0:05:40If you've never experienced this,
0:05:42I would highly recommend that you do.
0:05:44You can't really understand how people
0:05:46are interacting with your application
0:05:48unless you've turned this on.
0:05:49So you go to General, Accessibility,
0:05:51and you can turn on VoiceOver.
0:05:53Or really what I do, and I think a lot of developers that I know do this, is you can
0:05:57set that as a shortcut if you triple tap your home button.
0:06:02And so then you just triple tap your home button, you can turn it on and off, which
0:06:04is excellent for development, excellent for making sure that it works without having to
0:06:08fuss in the settings app.
0:06:11And so you can -- when you're in voiceover mode, the interaction model is very different.
0:06:16It has sort of a state to it where there's a selected element that is active, and when
0:06:21it becomes selected, its name is read aloud, and if you double tap, it'll perform an action
0:06:27on that. If you swipe left or right, it'll select the next control, and so on. And like
0:06:32I said, it's a bit hard to describe, but hopefully if you sit down with it and try it, it'll
0:06:37make a lot of sense. And so that's how a lot of people interact with your application.
0:06:43And so you want to be thoughtful about how that interaction is going to go. And some
0:06:47things just aren't going to work. Like, this is something that I've struggled with a little
0:06:50bit with an app like my weather app, Check the Weather, which has a lot of gestures in
0:06:55it. And so gestures are often very difficult to translate completely into something like
0:07:01voiceover because the system is taking over swipe gestures. The system is taking over
0:07:07a lot of things. And so you just have to be instead thoughtful, not necessarily about
0:07:11trying to take the same interface and just narrate it to your user. What you're trying
0:07:17to do is make sure that the information you're trying to present to that user is accessible
0:07:22in a reasonable and easy to navigate way. And there are really, I think there are probably
0:07:28three ways, parts to this. And these are the things that I've more recently been able to
0:07:33learn, especially honestly thanks to people in the visually impaired community who have
0:07:38reached out to me saying, "I like your app. It has basic voiceover support, but it would
0:07:44be much better if it did so and so. And they'll expand this and talk to me about this. And
0:07:49if you're a developer for any amount of time, you're almost certainly going to reach out
0:07:52to these people. And what I find, if you are, consider them tremendous resources, because
0:07:57they're giving you insight into something that you can't really project yourself. You
0:08:03know, as much as I try and think about what it would be like if I couldn't see my screen
0:08:06or I'll use my application with my eyes closed, I don't know what it's like to actually be
0:08:11blind or to be visually impaired and to know what that experience is like. So if you have
0:08:17a user of your application who is available and interested in providing that input to
0:08:21you, make sure you take advantage of it. I've learned so much every time I've done this.
0:08:26And so recently, the two things that I learned from one of my users for Podometer++ that
0:08:31who reached out to me is he was talking to me a lot about the way in which I was ordering
0:08:38both the controls on the screen and the words in my descriptions.
0:08:45So let's unpack those two.
0:08:47So if Predometer++, if you're not familiar with it,
0:08:49I mean, basically it's a pedometer using the M7 chip
0:08:52and an iPhone 5S.
0:08:53And it shows your daily step counts.
0:08:55So it says how active you were.
0:08:57And it has a horizontally scrolling bar graph
0:09:01on the bottom and some stats for your current day at the top.
0:09:05Fairly straightforward.
0:09:06And when I'd originally shipped the app,
0:09:08had just kind of done the basic version of VoiceOver, where all the controls said their
0:09:12text out loud. So there's, you know, there's a thing that says how many miles you've walked,
0:09:17there's a thing that says how many steps you've taken, and if you tapped on them, it would
0:09:21just to say the name, which sort of works, but it didn't really address what the actual
0:09:29user would want to do. And especially there were some issues I had where if you just take,
0:09:35do that basic level of it. The way, the order in which those controls are going to be navigated
0:09:40on this, when in voiceover mode, is somewhat arbitrary. I'm sure there's a basic rule
0:09:45to it, but it's not something that is strictly predictable out of the box. And I was talking
0:09:51to this user and he said, "What a lot of voiceover users do is they navigate an application
0:09:56using the swipe gesture. So they'll swipe right to left and we'll move from control
0:09:59to control to control. And so it's important the order in which those controls are displayed
0:10:06to that user because they're going to, in order for them to find their place, they may
0:10:11have to sit there swiping five or six times, and every time they do that they have to listen
0:10:16to what is being said. And so in my initial implementation, you open the app, you turn
0:10:22on VoiceOver, and I think it would start off with saying, giving you access to the settings
0:10:27button and to the share button. And then your next one, if you swiped, it would swipe over
0:10:32and it would start with a week ago's step count in the bottom chart essentially, which
0:10:40is actually probably not really what the user is interested in, right? The user is probably
0:10:44not most interested in knowing how many steps they took a week ago, but it just so happened
0:10:49that because it was the left most control on the screen, it was being shown first. And
0:10:55And so what I did is I had to, and this is relatively straightforward, you can set an
0:10:58accessibility order for any control, is reorder that. And so when you swipe, you know, when
0:11:04you use the first swipe now, it tells you your current day's data. And then it shows
0:11:08you the other data after that. Because more often than not, what you're curious about
0:11:12is what did I do today? And so it's just something you have, a thought exercise you need to go
0:11:17through is what order would be most useful for displaying this information to my user?
0:11:22Because keeping in mind, especially, whenever
0:11:25they open the application, they're starting from scratch.
0:11:27They don't necessarily keep their place
0:11:30in terms of your application.
0:11:31And so making it so they can quickly
0:11:33get to the most important information first.
0:11:36So that when you-- the first-- it's like in a podcast client,
0:11:38for example, the primary control may be something
0:11:41like the Play/Pause button after--
0:11:45and then like the Skip Forward, then the Skip Back, maybe,
0:11:48something like that.
0:11:49You can keep that in mind, because that's
0:11:51how they're going to be navigating. Secondly, being thoughtful about the order of words
0:11:57and what you're actually going to be telling them. If they're interacting with your application
0:12:01entirely from sound, the actually what you say and how you say it is kind of important
0:12:06because if it's long-winded, overly verbose type of thing, it's going to be very frustrating
0:12:12for them to hear. What they really want is to get the data out of your application. And
0:12:17And so you want to be thoughtful and terse about how you do that. And the order is important.
0:12:22So for example, I'm going to be telling somebody on a particular date, "They took so many
0:12:29steps and walked so many miles." Those three bits of information. Now there's a variety
0:12:34of ways I could tell someone that. I could say, "On Friday, June 20th, 2014, you took
0:12:41look, 4,297 steps. This constituted walking 207 miles. Or, is that, obviously that was
0:12:49wrong, 2.7 miles. Anyway, that's the point, right? That's a fairly long-winded way to
0:12:54say it. Conversely, you could say 4,277 miles today. 4.6 miles. Right? That's the same information
0:13:05but presented in a very concise way. And starting with the most important thing, in this case
0:13:11I would say step counts, and then moving on to the less important information as you go.
0:13:17And this is something that I found in my own experience makes a big difference. Having
0:13:21these big, long-winded descriptions where you're describing the interface to the user
0:13:25isn't really helpful. It's like labels showing current step count value to 4627 isn't actually
0:13:34useful. The user doesn't care that it's a label. They just want to get that information.
0:13:39And so being thoughtful about what your labels are is important, and being appropriately
0:13:42terse. Now obviously you can take that to an extreme, but in my experience generally,
0:13:47people who are interacting with your application are very good at parsing short bits of information
0:13:53if you're thoughtful about them. And so take that approach.
0:13:57One thing I'll also say is that if you put a comma between words, and it does a nice
0:14:01little brief pause as it reads it, which makes it even clearer to hear. So often do something
0:14:06like, you know, 4,622 steps to 4.2 miles, right? If you want to smush those two numbers
0:14:14together, but if you just throw a comma in there, it'll actually say it pretty nicely.
0:14:18And remember, you're trying to create an alternative experience for that user. You're trying to
0:14:25do something that is a parallel experience. You're not narrating your interface. That's
0:14:31the biggest thing I'd like for you to take away from this is hopefully when you're building
0:14:34accessibility. You're not narrating your experience. You're trying to create an alternative experience.
0:14:40And I think if you do, you'll create something that is valuable to a class of customers who
0:14:46are some of the most fanatical, devoted people I've interacted with. And so I'd encourage
0:14:51you to do that. All right, that's it for today's show. If you have questions, comments, concerns,
0:14:55or complaints, I'm on Twitter, underscore David Smith, David at developing perspective
0:14:58dot com. Thank you. Bye.