From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Challenge: Variants, modes, and effects

Challenge: Variants, modes, and effects

From the course: Complete Guide to SwiftUI

Challenge: Variants, modes, and effects

- [Instructor] Okay, on this challenge, we're going to work on the status bar and use a couple of SF symbols to make this work better. After $50 in pizza for Huli pizza, the customer gets a discount. So what we're going to do is hide the rainbow when there is $0 in sales, we'll also add a rainbow that grows to the full rainbow as the total for the order reaches $50 or above. After $50, animate the rainbow to change the colors. For the order cart, on the first items ordered, bounce the cart. When you reach $50 in orders, increase the size of the cart. For all of this, change the icons to use SF symbols effectively. Use symbol variance and symbol effects instead of the animation code we've been using now. And finally, make the grid icon disappear when you are in order view. Okay, let's give that a try.

Contents