From c585c57965d6a33d6d283e645dd9f19379dd1420 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Fri, 17 Feb 2023 18:51:06 -0800 Subject: [PATCH] Revert fixes since it didn't actually fix the problem --- AltStore/LaunchViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AltStore/LaunchViewController.swift b/AltStore/LaunchViewController.swift index 2ce33093..09ff177e 100644 --- a/AltStore/LaunchViewController.swift +++ b/AltStore/LaunchViewController.swift @@ -45,9 +45,7 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg // self.destinationViewController = self.storyboard!.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController let rootView = RootView() .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. - // 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)) + self.destinationViewController = UIHostingController(rootView: rootView) } super.viewDidLoad() }