Swift 4 Cheat Sheet and Quick Reference

Ray Wenderlich
Update 8/4/17: Updated for Swift 4 and Xcode 9.
Swift Cheat Sheet and Quick Reference Now Available!

Swift Cheat Sheet and Quick Reference Now Available!

Sometimes when learning a new language it’s handy to have a cheat sheet as you are getting used to syntax.

So I’ve made this cheat sheet for learning Swift 4:

It summarizes the most important Swift syntax on one page to get you up to speed quickly, including:

  • Class Implementation
  • Methods
  • Creating/Using an Object
  • Declaring Variables
  • Control Flow
  • String Quick Examples
  • Array Quick Examples
  • Dictionary Quick Examples

You can also download a Swift 4 playground with the examples from the cheat sheet.

Let me know if you have any comments/suggestions on how to improve this. I’ll be updating this periodically as Swift changes.

Want to learn more? Check out out our new Swift 4 books – covering everything you need to know about Swift 4, iOS 11, and more!

Ray Wenderlich

Ray is part of a great team - the raywenderlich.com team, a group of over 100 developers and editors from across the world. He and the rest of the team are passionate both about making apps and teaching others the techniques to make them.

When Ray’s not programming, he’s probably playing video games, role playing games, or board games.

Other Items of Interest

Save time.
Learn more with our video courses.

raywenderlich.com Weekly

Sign up to receive the latest tutorials from raywenderlich.com each week, and receive a free epic-length tutorial as a bonus!

Advertise with Us!

PragmaConf 2016 Come check out Alt U

Our Books

Our Team

Video Team

... 27 total!

iOS Team

... 82 total!

Android Team

... 44 total!

Unity Team

... 16 total!

Articles Team

... 4 total!

Resident Authors Team

... 32 total!

Podcast Team

... 8 total!

Recruitment Team

... 8 total!

Illustration Team

... 4 total!