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:

 

 

[cc lang=”swift”]

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

[/cc]
code-disciple

Author code-disciple

More posts by code-disciple

Leave a Reply