From the course: iOS 14 Development Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Build a color picker app
From the course: iOS 14 Development Essential Training
Challenge: Build a color picker app
(bright upbeat music) - [Instructor] And now for this chapter's challenge, let's review what we talked about so far. We worked with binding, we talked about the @State callout versus @Binding callout. We looked at creating custom SwiftUI views and creating multiple properties and parameters with those views. The challenge for this chapter is simple in concept. It is to finish our color picker app, that is to add green and blue sliders where the green and blue values of our image update as you drag the sliders. If that's enough information for you, feel free to get started, but if you'd like some tips, here you go. Green and blue need to have the @State callout, they don't currently have it in the code. Other tip is you can simply copy and paste the SliderView object to create the green and blue sliders. Make sure to change both the color and the binding variable that you're passing in. This challenge should take…
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)
Getting text input with SwiftUI4m 45s
-
(Locked)
Using a slider in SwiftUI5m 26s
-
(Locked)
Creating a slider with a color swatch2m 38s
-
(Locked)
Making a custom SwiftUI view5m 22s
-
(Locked)
Creating a reusable slider component4m 54s
-
(Locked)
Increasing reusability in custom views3m 13s
-
(Locked)
Challenge: Build a color picker app1m 19s
-
(Locked)
Solution: Build a color picker app1m 17s
-
(Locked)
-
-