Book Image

Mastering Swift

By : Jon Hoffman
Book Image

Mastering Swift

By: Jon Hoffman

Overview of this book

Table of Contents (22 chapters)
Mastering Swift
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we covered Swift collections, Tuples, Foundation, and Cocoa data types. Having a good understanding of native collection types of Swift is essential to architect and develop applications in Swift, since all but the very basic applications use collections to store data in memory.

At the time this book is being written, Swift is exclusively used for developing applications in an Apple (iOS or OS X) environment, so it is essential to understand how Swift interacts with Cocoa and Foundation types. While we briefly covered this subject in this chapter, we will look at this interaction more in depth in the Objective-C interoperability chapter later in this book.