Sometimes when learning a new language it’s handy to have a cheat sheet as you are getting used to syntax. After you’ve learned the language, it’s always nice to have a quick reference to refer to when using less common idioms.
So we’ve made this cheat sheet for learning Swift 5.1:
It summarizes the most important Swift 5.1 syntax on one page to get you up to speed quickly, including:
- Class Implementation
- Declaring Variables
- Control Flow
- Coding Protocols
- String Quick Examples
- Array Quick Examples
- Dictionary Quick Examples
You can also download a Swift 5.1 playground with the examples from the cheat sheet.
Let us know in the comments if you have any suggestions on how to improve this. We’ll be updating this periodically as Swift changes.
Want to learn more? Check out out our Swift and iOS books – covering everything you need to know about Swift 5, iOS 13, and more!