Chapter    2

Programming Basics

This chapter focuses on the building blocks that are necessary to become a great Swift programmer. This chapter covers how to use the playground user interface, how to write your first Swift program, and how to use the Xcode integrated development environment (IDE).

Note  We will introduce you to using playgrounds, which will enable you to program right away without worrying about the complexities of Xcode. We have used this approach for the last six years, teaching Objective-C and Swift, and know that it helps you learn the concepts quickly, without discouragement, and gives you a great foundation to build upon.

Touring Xcode

Xcode and playgrounds make writing Swift code incredibly simple and fun. Type a line ...

Get Swift 2 for Absolute Beginners now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.