GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

Learn Core Graphics with Swift Playgrounds

Take on a fundamental Apple API right on your iPad

Paul Hudson       @twostraws

I just released my first ever playground book for Apple's Swift Playgrounds app on iPad: Learn Core Graphics. This gives you the ability to work through examples of drawing shapes, text, images, and more, all while seeing the results of your code played back right next to it.

The free book is structured as a series of challenges of increasing difficulties, and by the end you'll have learned a fair chunk of Core Graphics that you can then go on to apply elsewhere. Because it uses the real Core Graphics API rather than a simplified approach, you can literally take the code you wrote and apply it directly in your own iOS apps.

If this first book benefits enough people it's likely I'll do more in the future. So, give it a try and let me know what you think!

To learn more, and subscribe to the playground, go to this page on an iPad that has Swift Playgrounds installed: Hacking with Swift in Swift Playgrounds. You'll see a "Click to Subscribe" button there that only works on iPads with Swift Playgrounds installed, and it will subscribe you to my playgrounds feed.

Hacking with Swift is sponsored by Alex.

SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!

Try 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 Interview Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift 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.7/5

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.