How do I connect storyboard to swiftui?

2.7k Views Asked by At

How do I connect the storyboard to swiftUI? I have tried to go to the finder/editor/assistant but it takes me to 'NSResponder.h' Is this the right place to connect code and storyboard in a Mac OS application? If so where in said file? If not what do I do?

1

There are 1 best solutions below

1
Md Raqeeb On

By creating subclass UIHostingController. This questions answer is provided in another question. Please check out this link.

Is there any way to use storyboard and SwiftUI in same iOS Xcode project?