fix: compile error

This commit is contained in:
naturecodevoid
2023-06-02 22:06:05 -07:00
parent a6349198cf
commit b8c12a1041

View File

@@ -17,14 +17,14 @@ extension UnstableFeatures {
let rootView = RootView()
.environment(\.managedObjectContext, DatabaseManager.shared.viewContext)
UIApplication.topController = UIHostingController(rootView: rootView)
UIApplication.keyWindow?.rootViewController = UIHostingController(rootView: rootView)
}
static func onDisable() {
let storyboard = UIStoryboard(name: "Main", bundle: .main)
let rootVC = storyboard.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController
UIApplication.topController = rootVC
UIApplication.keyWindow?.rootViewController = rootVC
}
}
}