~/talk

Evolving Existing Projects With SwiftUI

Talkat Swift Heroes Digital 2021 · 2021-04-15..04-16· [ios, swift]
slides:none on file

A production signing UI is rewritten almost entirely in SwiftUI while retaining an iOS 12 fallback, shipping as a real feature in the PDF viewer. Strategy uses UIHostingController wrappers around an optimized Objective‑C draw view, Combine publishers mapped from notifications, and UIKit hacks: anchor UIView for popovers, introspection to access underlying UITextView, and a keyboard coordinator. Known issues include geometry reader crashes on Catalyst and ObservableObject limits on NSObject; overall the approach works in production with monitored crash fixes.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:59Why use SwiftUI in production
  3. 8:34Mixing SwiftUI with legacy code
  4. 12:05Popover presentation challenges
  5. 16:43Toolbar API limitations
  6. 18:31Handling attributed graph crashes
  7. 20:58ObservableObject workarounds
  8. 21:19First responder and keyboard issues
  9. 24:11Wrapping custom views
  10. 26:40Keyboard avoidance implementation
  11. 29:07Summary and lessons learned
~/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.