Let's say I have a public "content view" in a package.
How would I implement that in an app to replace the default ContentView.
What I am attempting to do is have a complete logic flow within a package, and use this flow inside an app.
With storyboards I am able; in the app, is to access the flow within the framework through the use of storyboard references. As the app launches the framework's view controller is launched.
Is this possible in SwiftUI ?
Thank you
Code Block public struct SwiftUIView: View { public var body: some View { Text("Hello, world from within a package!").padding() } }
How would I implement that in an app to replace the default ContentView.
Code Block struct ContentView: View { var body: some View { Text("Hello, world!").padding() } }
What I am attempting to do is have a complete logic flow within a package, and use this flow inside an app.
With storyboards I am able; in the app, is to access the flow within the framework through the use of storyboard references. As the app launches the framework's view controller is launched.
Is this possible in SwiftUI ?
Thank you