Menu

#8 Preliminary SwiftUI support

open
nobody
None
2022-10-28
2020-09-16
Anonymous
No

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.

Discussion

  • Anonymous

    Anonymous - 2020-09-21

    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 a UINavigationController it will corrupt push/pop navigation.

    Moreover, it would be cleaner to make ContaninerController a proper container UIViewController (currently an NSObject) that is the parent of both the target controller much like a UITabBarController, and the presented controller (currently a view).

     
  • Anonymous

    Anonymous - 2020-09-22

    Originally posted by: rivera-ernesto

    I've noticed that taps in the embed SwiftUI view are not recognized.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.