UPDATED: The Swift 3 Cheatsheet

Written by: Reinder de Vries, September 22 2016, in Programming

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!

Download the Swift 3 Cheatsheet (PDF)

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 replacingOccurences(of: ...!
  • Consistent use of English grammar for methods that return vs. change in-place.
  • No more NS prefix 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.

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:

  • Variables
  • Functions
  • Classes
  • Instances
  • Control flow
  • Loops
  • Conditionals
  • Strings
  • Optionals
  • Dictionaries
  • Arrays
  • Closures
  • Guard & Defer
  • Generics
  • Tuples
  • Error Handling

Download the Swift 3 Cheatsheet (PDF)

What’s Next?

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
  • Every Monday: get curated app marketing news, resources, tools and goodies in your inbox
  • Grow your app's userbase with the latest App Store Optimization and app marketing strategies
  • FREE: Get the free step-by-step Get Started With Your App Idea guide to set yourself up for App Store success!
Yes, Sign Me Up!

Popular Posts

Written By: Reinder de Vries

Reinder de Vries is an indie app maker who teaches aspiring app developers and marketers how to build their own apps at LearnAppMaking.com. He has developed 50+ apps and his code is used by millions of users all over the globe. When he’s not coding, he enjoys strong espresso and traveling.

Get instant access to The Step-by-Step Guide: Get Started With Your App Idea

(PLUS: see the tool we use to save a ton on back-end coding)


Comments & Thoughts

On The Blog