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

DAY 91

Core Graphics redux


Fred Donaldson has spent the last 40 years researching how and why children play, has taught at three US universities, written multiple books, and created a foundation to help teach his learning approach to the wider world.

One of the quotes he’s most famous for is this one: “Children learn as they play. Most importantly, in play children learn how to learn.” That’s huge, if you stop and think about it: play helps teach kids the thing they are working with, but also deepens in them the concepts underlying all of learning itself.

Of course, play doesn’t apply just to kids – as George Bernard Shaw said, “we don’t stop playing because we grow old; we grow old because we stop playing.” And so today’s second consolidation day is geared around giving you the space and time to play around with Core Graphics to see what you can do.

I’ve created a special Swift playground that walks you through a variety of Core Graphics techniques. However, I’ve made two versions, and it’s important you choose the right one.

Today you should work through my Learn Core Graphics playground, either in Swift Playgrounds (preferred) or Xcode.

Remember: experimentation like this is a powerful way to learn Core Graphics, but also learning how to learn in general. Enjoy it!

If you have an iPad

Please install Apple’s “Swift Playgrounds” app from the App Store. It’s free, and allows you to experience my Core Graphics playground in its fullest.

Once you have Swift Playgrounds installed on your iPad, visit https://www.hackingwithswift.com/playgrounds on your iPad and click the big green “CLICK TO SUBSCRIBE” button. That should subscribe you to my source of Swift playgrounds.

Finally, select my Learn Core Graphics playground and dive in.

If you do not have an iPad

I’ve made a special version of my Learn Core Graphics playground that works in Xcode 10.2 on your Mac. It doesn’t have all the same features because Xcode’s playground support isn’t as extensive as the Swift Playgrounds app, but it should still work great.

To try this approach, please download and run the playground from here: http://hackingwithswift.com/files/playgrounds/Learn-Core-Graphics-Xcode.zip.

Need help? Tweet me @twostraws!

 

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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

100 Days of Swift


The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.