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

DAY 71

Project 20, part two


Even today, the shake gesture in iOS feels a bit odd, at least to me. It’s particularly odd on iPad, where devices can be up to 12.9-inches – they are hefty, so shaking them feels, well, odd.

John Gruber recounts an anecdote he heard about how shake to undo came about, which might why it just doesn’t fit in with the rest of the platform:

Scott Forstall charged the iOS team with devising an interface for Undo — everyone knew the iPhone should have it,1 but no one had a good idea how to do it. One engineer joked that they could just make you shake the iPhone to invoke it. Forstall said he loved the idea, and what was proposed as a joke has been with us as the Undo interface ever since.

Still, when it works it works, and I think it feels satisfying to make things explode by giving your iPad a little shake!

There’s only a little bit more to do to our game to finish it up, and I hope you’re happy with how it all came together – SpriteKit is fun.

Today you should work through the “Making things go bang” chapter and wrap up for project 20, complete its review, then work through all three of its challenges.

That’s another project finished, and one that gives you the foundations for some major new projects of your own – share your progress with the world!

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.