From 27f0ee45b77dea7f492169d37672e79187d72b46 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Thu, 5 Jan 2023 21:40:15 +0100 Subject: [PATCH] Revert previous as it's still crashing on macOS --- IceCubesApp/App/IceCubesApp.swift | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/IceCubesApp/App/IceCubesApp.swift b/IceCubesApp/App/IceCubesApp.swift index cfeab733..df6c5490 100644 --- a/IceCubesApp/App/IceCubesApp.swift +++ b/IceCubesApp/App/IceCubesApp.swift @@ -41,6 +41,7 @@ struct IceCubesApp: App { .environmentObject(currentInstance) .environmentObject(theme) .environmentObject(watcher) + .quickLookPreview($quickLook.url, in: quickLook.urls) } .onChange(of: scenePhase, perform: { scenePhase in handleScenePhase(scenePhase: scenePhase) @@ -59,19 +60,9 @@ struct IceCubesApp: App { @ViewBuilder private var appView: some View { if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { - if ProcessInfo.processInfo.isiOSAppOnMac || ProcessInfo.processInfo.isMacCatalystApp { - splitView - } else { - splitView - .quickLookPreview($quickLook.url, in: quickLook.urls) - } + splitView } else { - if ProcessInfo.processInfo.isiOSAppOnMac || ProcessInfo.processInfo.isMacCatalystApp { - tabBarView - } else { - tabBarView - .quickLookPreview($quickLook.url, in: quickLook.urls) - } + tabBarView } }