Company
Date Published
Author
Anthony Miller
Word count
605
Language
English
Hacker News points
None

Summary

Apollo iOS 2.0 introduces a major overhaul of the Swift client, designed to leverage Swift's modern concurrency model for enhanced performance, type guarantees, and developer experience in GraphQL-powered apps across Apple platforms. The update aligns with Swift 6's strict concurrency checks, offering APIs that ensure data safety across tasks, while simplifying workflows with async/await expressions instead of traditional completion handlers. This version requires migration to iOS 15, macOS 12, and newer platforms, and drops CocoaPods in favor of Swift Package Manager and XCFrameworks. While it currently supports only HTTP-based GraphQL subscriptions, an updated WebSocket implementation is forthcoming. The transition is structured to minimize risks, allowing developers to adapt their codebase progressively. A detailed migration guide is available to assist developers in adopting the new structured APIs and modernizing their client code.