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 you troubleshoot issues.
By the end of this chapter, you should be able to write simple programs that can store and process letters and numbers.
The following topics will be covered:
- Understanding...