Adopt and interoperate with Cocoa design patterns in your Swift apps.
Cocoa Design Patterns
Notify objects about changes to the properties of other objects.
Respond to events on behalf of a delegator.
Provide access to a shared resource using a single, shared class instance.
Learn how Cocoa error parameters are converted to Swift throwing methods.
Throw and catch errors that use Cocoa's error types.
Apply macros to your Objective-C APIs to customize how they're imported into Swift.
Learn the recommended steps to migrate your code.
Cast instances of the Objective-C
id type to a specific Swift type.
Use selectors and key paths to interact with dynamic Objective-C APIs.
Use native Swift syntax to interoperate with types and functions in C and Objective-C.