small medium large xlarge

Swift Style: An Opinionated Guide to an Opinionated Language

December 14, 2016

As we close out 2016 with our last new book for the year, please consider embracing a better Swift Style: an opinionated guide to an opinionated language by well-known iOS author Erica Sadun. Now in beta from

Come and get it.

Swift Style: An Opinionated Guide to an Opinionated Language

Apple's Swift programming language has finally reached stability, and developers are demanding to know how to program the language properly. Swift Style guides you through the ins and outs of Swift programming best practices. This is the first best practices book for serious, professional Swift programmers and for programmers who want to shine their skills to be hired in this demanding market.

A style guide offers a consistent experience of well-crafted code that lets you focus on the code's underlying meaning, intent, and implementation. This book doesn't offer canonical answers on Swift coding style. It explores the areas of Swift where structure comes into play. Whether you're developing a personal style or a house style, there are always ways to enhance your code choices. You'll find here the ideas and principles to establish or enhance your own best style practices.

Begin with simple syntactical styling. Strengthen code bracing for easy readability. Style your closures for safety and resilience. Perfect spacing and layout. Master literal initialization and typing. Optimize control flow layout and improve conditional style choices. Transition from Objective-C and move code into Swift the right way. Boost API design using proper naming and labeling. Elevate defaulted arguments and variadics to their right places. Finally, Erica offers her own broad recommendations on good coding practice.

Now in beta from

Upcoming Author Appearances

  • 2017-01-04 Johanna Rothman, Non-Fiction Writing Workshop to Enhance Your Business (online workshop)
  • 2017-01-09 Johanna Rothman, Practical Product Ownership Workshop (online)
  • 2017-01-10 Johanna Rothman, Secrets of Successful Non-Fiction Writers (Workshop 2)
  • 2017-01-12 Rachel Davies, Regional Scrum Gathering, Tokyo Japan
  • Don't Get Left Out

    Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

    Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:

    Tell your friends! Tweet this

    Follow us on Twitter: @pragprog, @pragpub, Andy Hunt @PragmaticAndy.

    Coming Soon:

    • Scalable Cloud Ops with Fugue: Declare, Deploy, and Automate the Cloud

    Recently Released:

    Thanks for your continued support,

    Andy Hunt Publisher, Pragmatic Bookshelf

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts