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

Reduce motion: Custom transitions - iOS Tutorial

From the course: iOS App Development: Accessibility

Start my 1-month free trial

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…

Contents