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 motion: Custom transitions - iOS Tutorial
From the course: iOS App Development: Accessibility
Reduce motion: Custom transitions
- [Instructor] The last thing we need to do to support a user's preference for reduced motion is handle our custom view controller transmissions. In order to fix this, we need to figure out what's responsible for this animation. If I look in my BridgeDetailViewController and scroll to the very top, you can see this file is set as the navigation controller's delegate. Using the jump bar we can quickly get to where we're returning an animator object to be used during a custom view controller transition. Here, I'm returning the ImageTransitionFromThumbToDetail object, which we can find over here in our project navigator. In the ImageDetailViewController, I'm returning another custom animator object. In this case, it's the ImageTransitionFromDetailToThumb. It's in these two files, where we'll want to make our adjustments. We'll start with a ThumbToDetail animator object. Inside an animator object, the animation happens inside the animateTransition method. Here I'm calling out to the…
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)
-
-
-
-