From the course: iOS App Development: Accessibility
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reduce transparency - iOS Tutorial
From the course: iOS App Development: Accessibility
Reduce transparency
- [Instructor] In our app, our cells use a transparent background to overlay text on top of the background image. This is a nice effect, but for some users this design can be difficult to read. Fortunately, there's a setting users can adjust to request that interfaces reduce the amount of transparency. This setting can be toggled by going to Settings, General, Accessibility, Increase Contrast, Reduce Transparency. If we go back to our app we'll see that we're not supporting that preference yet. And in this video we'll learn how to alter our interface to respect a user's preference. We'll do this by working through common pitfalls when working with colors and transparency. Back in Xcode if we open up IndexTableViewCell.swift and go to our awakeFromNib method and open up a new line, on line 34 we can check the value of this preference by using the UIKit method, UIAccessibility IsReduceTransparencyEnabled. And if it is, we'll set our textBackdrop.alpha to 1, which means our backdrop view…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Dynamic Type9m 17s
-
(Locked)
Dynamic Type, part 2: Custom fonts3m 59s
-
(Locked)
Dynamic Type, part 3: UITableViewCells2m 27s
-
(Locked)
Reduce transparency8m 28s
-
(Locked)
Reduce motion: Animations2m 54s
-
(Locked)
Reduce motion: Custom transitions5m 52s
-
(Locked)
Bold fonts and darker colors5m 31s
-
(Locked)
-
-
-
-