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 five years 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 of code, and the result appears ...

Get Swift for Absolute Beginners 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.