Integrating modern native APIs with legacy code
summary
Cornershop integrates SwiftUI into an old Objective C product view in one month by embedding a SwiftUI deck-of-cards and using a small Builder class to expose a HostingController to ObjC, but falls back to UIKit for pinch/drag full screen and uses an ObservableObject updater as a lightweight workaround. A critical table view is refactored to a hybrid with DiffableDataSource and the team says it eliminates their most common crash. For offline carts they choose GRDB, abstract a Cart protocol, split services, and keep async/await adoption gradual with hybrid completion+async code.
AI-written summary · about
chapters (7)
- 0:00Introduction and context
- 6:04Setting the mindset for integration
- 9:04SwiftUI integration with legacy code
- 18:36Challenges and limitations with SwiftUI
- 22:31Supporting local cart with new APIs
- 35:18Key takeaways from the examples
- 39:15Q&A session








