mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
Revert previous as it's still crashing on macOS
This commit is contained in:
parent
faefa291bf
commit
27f0ee45b7
1 changed files with 3 additions and 12 deletions
|
@ -41,6 +41,7 @@ struct IceCubesApp: App {
|
||||||
.environmentObject(currentInstance)
|
.environmentObject(currentInstance)
|
||||||
.environmentObject(theme)
|
.environmentObject(theme)
|
||||||
.environmentObject(watcher)
|
.environmentObject(watcher)
|
||||||
|
.quickLookPreview($quickLook.url, in: quickLook.urls)
|
||||||
}
|
}
|
||||||
.onChange(of: scenePhase, perform: { scenePhase in
|
.onChange(of: scenePhase, perform: { scenePhase in
|
||||||
handleScenePhase(scenePhase: scenePhase)
|
handleScenePhase(scenePhase: scenePhase)
|
||||||
|
@ -59,19 +60,9 @@ struct IceCubesApp: App {
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private var appView: some View {
|
private var appView: some View {
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
|
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
|
||||||
if ProcessInfo.processInfo.isiOSAppOnMac || ProcessInfo.processInfo.isMacCatalystApp {
|
splitView
|
||||||
splitView
|
|
||||||
} else {
|
|
||||||
splitView
|
|
||||||
.quickLookPreview($quickLook.url, in: quickLook.urls)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ProcessInfo.processInfo.isiOSAppOnMac || ProcessInfo.processInfo.isMacCatalystApp {
|
tabBarView
|
||||||
tabBarView
|
|
||||||
} else {
|
|
||||||
tabBarView
|
|
||||||
.quickLookPreview($quickLook.url, in: quickLook.urls)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue