I revamp all my view controllers in SwiftUI. But still i am bound to use hostingVC for launching my SwiftUI views from scene delegate like below
let splashVCHostingController = UIHostingController(rootView: SplashView())
self.window.rootViewController = splashVCHostingController
I want my UIKit project to directly launch my SwiftUI app which appears like this
@main
struct MainAppStruct: App {
@UIApplicationDelegateAdaptor var delegate: AppDelegate
var body: some Scene {
WindowGroup {
SplashView()
}
}
}
Please help me achieving this.