~/talk

Integrating modern native APIs with legacy code

Talkat BA: Swiftable 2022 · 2022-12-01..12-02· [ios, legacy-modernisation]
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction and context
  2. 6:04Setting the mindset for integration
  3. 9:04SwiftUI integration with legacy code
  4. 18:36Challenges and limitations with SwiftUI
  5. 22:31Supporting local cart with new APIs
  6. 35:18Key takeaways from the examples
  7. 39:15Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.