Swift Language Quick Reference


Swift is the programming language that Apple introduced two weeks ago at WWDC14.  I’ve spent the last week pouring over the language guide, condensing (almost) all of the facts into a double-sided 8.5×11″ quick reference sheet.  I invite feedback, and hope that it’s useful to others.  I recommend at least going through the Swift tour before diving in.

Swift QuickRef

 

Swift QuickRef

, , ,

  1. #1 by Mark Livingstone on July 23, 2014 - 5:54 pm

    Hello!

    Are you planning to update the cheat sheet for all the new Swift syntax?

    Cheers,

    MArkL

  2. #2 by hpux735 on July 23, 2014 - 6:00 pm

    Yep, I am. But, I now realize now that every-other week there will be syntax changes. I’m considering waiting a bit until things seem to settle down some.

  3. #3 by Charles Merriam on September 21, 2014 - 10:16 am

    Great work!

    On the closures section, Xcode is claiming an ‘&’ is required as sort changes the name requirement. That is: “sort(names, { $0 < $1 })" goes to "sort(&names, { $0 < $1 })". Similarly for the other three sort examples.

    Have a great day!

  4. #4 by hpux735 on September 21, 2014 - 4:44 pm

    You’re absolutely correct. I’m planing on revising the entire cheat-sheet now that Swift version 1 is GM, I just haven’t gotten to it yet.

(will not be published)

Please complete this capcha. I get almost 1000 spam comments a day! * Time limit is exhausted. Please reload CAPTCHA.