Preliminary SwiftUI support
UI Component. This is a copy swipe-panel app AppleMaps
Brought to you by:
mrustaa
Originally created by: rivera-ernesto
For now it will simply add a UIHostingController
view
to the contentView
.
I commented out calls needed for proper view controller containment because it doesn’t play well with my UINavigationController
.
Originally posted by: rivera-ernesto
Added code that properly adds/removes the child view controller calling the corresponding methods on both parent and child controllers.
It is cleaner now but it can pose problems with the parent. For instance when using
ContaninerController
with aUINavigationController
it will corrupt push/pop navigation.Moreover, it would be cleaner to make
ContaninerController
a proper containerUIViewController
(currently anNSObject
) that is the parent of both the target controller much like aUITabBarController
, and the presented controller (currently a view).Originally posted by: rivera-ernesto
I've noticed that taps in the embed SwiftUI view are not recognized.