Chapter    1

Swift Programming

Welcome to Swift Recipes. Swift, announced by Apple at WWDC 2014 and released in September of 2014 is a modern alternative to Objective-C for iOS and OS X developers. In each chapter of this book are recipes or solutions to common situations and challenges you will encounter when developering iOS and OS X applications.

Each chapter follows the same format. A problem is presented, followed by the solution. The solution is discussed in detail in a section named “How It Works.” This section explains the implementation of the solution using Swift. Code examples and details about how to apply the code are used to walk you through the solution. Finally, in “The Code and Usage” section, the full listing of the code ...

Get Swift Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.