Chapter 2: Simple Values and Types

Now that you have had a short tour of Xcode, let's look at the Swift programming language.

Important Information

For more information about the latest version of the Swift language, visit https://docs.swift.org/swift-book/.

First, you'll explore Swift Playgrounds, an interactive environment where you can type in Swift code and have the results displayed immediately. Next, you'll study how Swift represents and stores various types of data. After that, you'll look at some cool Swift features such as type inference and type safety, which help you to write code more concisely and avoid common errors. Finally, you'll learn how to perform common operations on data and how to print messages to the Debug area to help ...

Get iOS 14 Programming for Beginners - Fifth Edition 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.