Summary

In this chapter, we covered Swift collections, tuples, Foundation, and Cocoa data types. Having a good understanding of the 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 of writing this book, 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 Chapter 13, Using Mix and Match, later in this book.

Get Swift: Developing iOS Applications 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.