Is Cocoa still around?
Generated on 8/3/2024
1 search
Yes, Cocoa is still around. While Swift has become the primary language for app development on Apple's platforms, Objective-C and the Cocoa framework continue to be supported. In fact, even though Swift has introduced many modern features and improvements, the legacy APIs and frameworks, including those written in Objective-C, still benefit from updates and enhancements.
For example, in the session What’s new in Swift, it is mentioned that the Foundation framework, which is a core part of Cocoa, has been rewritten in Swift to provide a more consistent, higher quality, and better-performing API. This new implementation benefits both Swift and Objective-C applications.
Here are some relevant sessions that discuss the evolution and current state of Swift and its interoperability with existing frameworks:
These sessions highlight how Swift continues to evolve while maintaining compatibility and improving upon the existing Objective-C and Cocoa frameworks.
Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.
Platforms State of the Union
Discover the newest advancements on Apple platforms.
What’s new in StoreKit and In-App Purchase
Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We’ll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We’ll also review an important StoreKit deprecation.
What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.