UPDATED: The Swift 3 Cheatsheet
Why learn by heart if you can cheat? Grab this cheatsheet for Swift 3, including common syntax for primitives, basic classes, closures, error handling and more!
Swift 3 has recently been released and it’s the first major open-source iteration of the popular programming language for the Apple ecosystem (iOS, tvOS, watchOS and macOS).
The language update introduced a few big changes, making this version of Swift the best yet. Including:
- Omit needless words. No more
stringByReplacingOccurrencesOfString ..., just
- Consistent use of English grammar for methods that return vs. change in-place.
- No more
NSprefix for basic classes – bye-bye NeXTSTEP!
- Consistent lowerCamelCase for properties, methods and structs.
- Together with the first point – all function arguments now have labels!
I seriously think v. 3 is the first real gamechanger since Swift’s initial launch. Read up on all changes, here.
Supercharge your next app project
Grab the App Toolbox 2017 to learn how to save time building your app
and how to get thousands of app installs in the App Store.
In This Cheatsheet…
Compared to the previous version of the cheatsheet, a lot has changed. It’s expanded, made clearer, upgraded and updated. Dare I say it’s the most Swifty edition yet?
Including syntax examples for:
- Control flow
- Guard & Defer
- Error Handling
Pin the cheatsheet to your desktop – don’t print it out – and use it for your next Swift project. Learning how to Swift? Use the cheatsheet to improve your expertise and retention of basic Swift concepts, and practice your skill.
Got an idea for the next version of the cheatsheet? Let me know in the comments!
Join 11.000+ app developers and marketers
- Get a weekly curated list of app development tools, articles and resources in your inbox
- 10x your app installs with relevant App Store Optimization and app marketing strategies
- BONUS: Grab a free copy of the App Toolbox 2017 to supercharge your next app project
Comments & Thoughts
On The Blog
Great App Ideas: The X-for-Y
During the LearnAppMaking.com course, I ask students to think of a major competency they have. Like psychology, being a dentist, having a brick and mortar business. This is the X-for-Y Archetype, it's a business they're going to apply a principle to from another business. Are there any X-for-Y ideas you can come up with?
Question: "How can I use an iPhone app if I don't have an iPhone?"
Great question! How do you work with an iPhone app if you don't have a physical device available?
App Success: App Maker Jordan Says “Show Your Ideas To People As Much As You Can”
In our App Success-series I talk to upcoming and seasoned app publishers about their successes in the App Store. Today it’s Jordan Westfall, publisher of the game Spin Square, who’s in the spotlight. He talks about ideation, showing your idea to people, and relying on support from your network.
AppTentive: Guide On App Marketing, App Store Ratings And The Future Of App Publishing
Recently, AppTentive published a new guide: The Mobile Marketers Guide To App Store Ratings And Reviews. I had the honor of writing a guest column for them, and would like to give you a brief summary of the points presented in the guide.