From the course: Learning iOS Animations with UIKit

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Chapter challenge

Chapter challenge - iOS Tutorial

From the course: Learning iOS Animations with UIKit

Start my 1-month free trial

Chapter challenge

- [Instructor] For our last chapter challenge, your task is going to be adding in an animation to move our info label into the center of the newsletter view with an alpha property fade in. Now, before you start the challenge, you're going to want to change some of the label's properties that are set up in viewDidLoad(). First, go ahead and set the alpha to 0 and second, we want to change the background color to clear. Now, as to where to add in this animation, you'll want to add it in right after we activate the constraints on our dynamic label and force a layout change. I'm going to add a little to do comment in here, TODO: Animate label. Remember, even though you called layoutIfNeeded() once already, doesn't mean you won't need to do so again. This challenge shouldn't take more than five to 10 minutes so head over to the solution when you're done to compare notes. Happy coding.

Contents