2
Simple Values and Types
Now that you have had a short tour of Xcode in the previous chapter, let’s look at the Swift programming language, which you will use to write your app.
First, you’ll explore Swift playgrounds, interactive environments where you can type in Swift code and have the results immediately displayed. Then, 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 more concise code and avoid common errors. Next, you’ll learn how to perform common operations on data. Finally, you’ll learn how to print messages to the Debug area to help you troubleshoot issues.
By the end of this chapter, you will be ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access