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.

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 ...

Get iOS 16 Programming for Beginners - Seventh 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.