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.
Get complementary access to my course, Zero to App Store, and learn how you can build a real-time chat app with Firebase and Swift!
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!
Most Popular Content
- Creating A Simple iOS Game With Swift 3 In Xcode (Part 1)
- How To Develop iOS Apps On A Windows PC
- How To: Build A Real-Time Chat App With Firebase And Swift
- How To: Random Numbers in Swift 3
- Grand Central Dispatch: Multi-Threading With Swift 3
- Debugging: How To Find And Fix Bugs With The Xcode Debugger
- UPDATED: The Swift 3 Cheatsheet