Follow along at https://www.hackingwithswift.com/100/swiftui/67.
This day covers Part Five of Project 13: Instafilter
in the 100 Days of SwiftUI Challenge. (Project 13 files can be found in the directory for Part One.)
In addition to recapping the material covered during the project's other days, Day 67 focuses on extending the project according to a set of challenges.
Try making the Save button show an error if there was no image in the image view.
- 🔗 I disabled it instead 😛.
Make the Change Filter button change its title to show the name of the currently selected filter.
- 🔗 Already Covered in a similar manner.
Experiment with having more than one slider control each of the input keys you care about. For example, you might have one for radius and one for intensity.
- 🔗 I ended up experimenting this as part of Day 66. I came up with a way to dynamically render filter-appropriate sliders inside of a
ForEach
block.