In this section, we'll recapitulate how the most common Cocoa design patterns translate to Swift. You may already be very familiar with those design patterns as they are found throughout Cocoa.Â
Originally, Cocoa was designed as the high-level API to interface with macOS in Objective-C. Originally, it comprised three frameworks:
- Foundation
- AppKitÂ
- Core Data
These frameworks are designed with a common rationale and a set of design patterns we encounter and work with constantly through all Apple SDKs.