mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 12:13:26 +01:00
Revert fixes since it didn't actually fix the problem
This commit is contained in:
@@ -45,9 +45,7 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg
|
|||||||
// self.destinationViewController = self.storyboard!.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController
|
// self.destinationViewController = self.storyboard!.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController
|
||||||
let rootView = RootView()
|
let rootView = RootView()
|
||||||
.environment(\.managedObjectContext, DatabaseManager.shared.viewContext)
|
.environment(\.managedObjectContext, DatabaseManager.shared.viewContext)
|
||||||
// NOTE: Injection/HMR can be done solely from the SwiftUI side of things, however, it crashes the app when editing a view inside another view (such as the dev mode menu). For some reason, injecting in UIKit *and* SwiftUI at the same time fixes this.
|
self.destinationViewController = UIHostingController(rootView: rootView)
|
||||||
// However, it has one downside: if we inject in UIKit, the whole UI will reload whenever we save a change.
|
|
||||||
self.destinationViewController = Inject.ViewControllerHost(UIHostingController(rootView: rootView))
|
|
||||||
}
|
}
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user