From the course: Advanced iOS App Development: Core Animation

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: Advanced iOS App Development: Core Animation

Start my 1-month free trial

Chapter challenge

- [Instructor] We've explored three layer subclasses in this module, gradients, shapes, and replicators. But there are still quite a few that we haven't touched on. However, by now you have the tools you need to figure out how to work with any layer class. So this challenge is gonna require a bit of initiative on your part. Your task here is to create a title label on the dashboard view controller, using a CA text layer. You're then gonna animate the text layer's foreground color property any way you like. For reference, the foreground color property controls the text color, and the animation key path for it is foreground color. So let's go ahead and add that in to the animation helper just so you're set up to go. Say static var textColor, the string is foregroundColor, just like that. You can find the CA text layer documentation with the link shown on screen. So if you have any problems check it out, and happy coding.

Contents