If you’re interested in how to add SwiftUI Views into your existing UIKit apps, Apple have made it super-simple to get started. Watch here for how to get the ball rolling with your projects:

 

 

1
2
3
@IBSegueAction func swiftUIAction(_ coder: NSCoder) -> UIViewController? {
  return UIHostingController(coder: coder, rootView: NewSwiftUIView())
}
code-disciple

Author code-disciple

More posts by code-disciple

Leave a Reply