2 Variables
This chapter goes through the very basics of Swift, covering variables, basic data types, and operators.
In this chapter, you will make your debut into hands-on Swift adventures by learning about one of the most fundamental programming concepts: variables! For novices, we’ll start by explaining the basics of variables, then we’ll follow that up by covering different data types offered by Swift. We’ll finally conclude with some tips and tricks. Buckle up, and let’s go!
Xcode Screenshots
Because this chapter is your hands-on debut to Swift and Xcode, we’ll provide screenshots of Xcode outputs for nearly every example. This will ensure that you get used to the IDE and understand how to see the results of Swift statements. In other chapters, ...
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