WWDC19
=================
Session materials: https://developer.apple.com/videos/play/wwdc2019/231/
-
Wraps swiftUI hierarchy into a view controller
-
Subclass of
UIViewController
-
rootView
property represents a SwiftUI view -
let hostingController = UIHostingViewController(rootView: A_SWIFTUI_VIEW)
-
setNeedsBodyUpdate()
&updateBodyIfNeeded()
- Use
@BindableObject
protocol in the custom model to pass it to the SWiftUI