Chapter 2. Introduction to Swift playgrounds
This chapter covers
- Exploring Xcode playgrounds
- Using type safety in Swift
- Understanding simple Swift data types
- Working with collections and tuples in Swift
- Working with optionals
Swift isn’t JavaScript without the semicolons or Objective-C without the square brackets. Swift is inspired by new philosophies and approaches to programming that have driven its design and evolution.
Even the most experienced programmers will encounter new concepts and syntax in Swift. In this chapter and the next, I assume that you have experience in programming and are mainly interested in what’s new, different, and exciting about Swift. I’ll also discuss how concepts in Swift relate to shifts in programming ...
Get iOS Development with Swift 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.