Chapter    2

Getting Started with Swift

Ahmed Bakir

As it is one of the newest programming languages on the market, one would be remiss to start a Swift book without offering the reader a brief introduction to the language. Readers who already feel comfortable with Swift can skip this chapter entirely or just reference the sections they are curious about.

Immediately upon its announcement at the 2014 Apple Worldwide Developers Conference (WWDC), Swift became one of the fastest adopted programming languages in recent history. To help aid this rapid acceptance, Apple designed the language to be fully compatible with existing Objective-C code and all of Cocoa/Cocoa Touch (the frameworks you use to build OS X and iOS apps).

In the past year, however, ...

Get Program the Internet of Things with Swift for iOS 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.