I could easily have written twice as much about Core Graphics, because it's capable of some extraordinary effects. Clipping paths, gradients, blend modes and more are just a few lines of code away, so there really is no excuse not to give them a try! And if you don't give it a try yourself, don't worry: we'll be drawing with Core Graphics in project 29, so you can't avoid it.
This project has given you a sandbox where you can play around with various Core Graphics techniques easily, so I would highly encourage you to spend another hour or two tinkering with the code in your project. Use code completion to try new functions, change my values to others to see what happens, and so on. Playing with code like this can help you to discover new functionality, and will also help you remember more later. Have fun!
You finished another project, and I'm glad Hacking with Swift helped you. Now I need your help. Please take just a moment out of your day to tell others about Hacking with Swift so they can benefit too.
You can click below to post a tweet straight to this project. Or if you're feeling particularly generous, you can click here to link to Hacking with Swift on your website and help spread the word.
Thank you. Your support is what keeps me going!
Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and Mario Kart world champion. OK, so that last part isn't true. If you're curious you can learn more here.
Go from iOS to macOS the easy way!
If you like Hacking with Swift, you'll love Hacking with macOS – learn to build macOS apps today, using 18 real-world projects!