Mastering Swift
上QQ阅读APP看书,第一时间看更新

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.