BLACK FRIDAY SALE: Save 50% on all my Swift books and bundles! >>

Instafilter: Wrap up

Paul Hudson    @twostraws   

We covered a lot of ground in this tutorial, and we’ll be coming back to a lot of it in the very next project – working with UIKit isn’t a “nice to have” for most apps, so it’s best you get used to it and start building up your library of functionality wrappers.

Still, we also learned some great SwiftUI stuff, including confirmation dialogs and onChange(), both of which are super common and will continue to be useful for years to come.

And there’s Core Image. This is another one Apple’s extremely powerful frameworks that 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!

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 Save button disabled if there is no image in the image view.
  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.

Save 50% in my Black Friday sale.

SAVE 50% To celebrate Black Friday, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

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.