~/talk

Integrating SwiftUI & UI Kit

Talkat dotSwift 2020 · on Monday, 2020-02-03· [swift]
slides:none on file

SwiftUI is promising but incomplete so the concrete claims are: it interoperates with UIKit and there are two practical paths — start SwiftUI and wrap UIKit with UIViewRepresentable/UIViewControllerRepresentable (use make update optional makeCoordinator and heed that environmentObject injection does not work for representables) or embed SwiftUI in UIKit via UIHostingController or hostingController.view. Practical gotchas: missing controls (collection views text views image picker etc) and a real app example where three collection views redraw on every keystroke causing horrible performance, so avoid creating UIKit objects repeatedly.

AI-written summary · about

  1. 0:00Intro
  2. 0:12SwiftUI
  3. 4:18Observable Objects
  4. 7:03The Catch
  5. 8:48The Coordinator
~/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.