UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Instafilter: Wrap up

Paul Hudson    @twostraws   

We covered a lot of ground in this tutorial, not least seeing how we can lean on powerful frameworks like Core Image to introduce impressive graphical effects. Yes, it never quite made the smooth leap to Swift – you need to know it’s quirks if you want to make the most of it. Still, you’re through the worst of it now, so hopefully you can try using it in your own code!

At the same time, we also learned some great SwiftUI stuff, including confirmation dialogs, onChange(), ContentUnavailableView, and App Store reviews, all of which are super common and will continue to be useful for years to come.

Review what you learned

Anyone can sit through a tutorial, but it takes actual work to remember what was taught. It’s my job to make sure you take as much from these tutorials as possible, so I’ve prepared a short review to help you check your learning.

Click here to review what you learned in this project.

Challenge

One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand what’s going on.

  1. Try making the Slider and Change Filter buttons disabled if there is no image selected.
  2. Experiment with having more than one slider, to control each of the input keys you care about. For example, you might have one for radius and one for intensity.
  3. Explore the range of available Core Image filters, and add any three of your choosing to the app.

Tip: That last one might be a little trickier than you expect. Why? Maybe have a think about it for 10 seconds!

Hacking with Swift+ subscribers can get a complete video solution for this checkpoint here: Solution to Instafilter. If you don’t already subscribe, you can start a free trial today.

Hacking with Swift is sponsored by Proxyman

SPONSORED Proxyman: A high-performance, native macOS app for developers to easily capture, inspect, and manipulate HTTP/HTTPS traffic. The ultimate tool for debugging network traffic, supporting both iOS and Android simulators and physical devices.

Start for free

Sponsor Hacking with Swift and reach the world's largest Swift community!

BUY OUR BOOKS
Buy Pro Swift Buy Pro SwiftUI Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let us know!

Average rating: 4.9/5

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.