Try isMacCatalystApp

This commit is contained in:
Thomas Ricouard 2023-01-05 20:35:29 +01:00
parent 36d8449cea
commit 70dfd36a70

View file

@ -59,7 +59,7 @@ struct IceCubesApp: App {
@ViewBuilder
private var appView: some View {
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
if ProcessInfo.processInfo.isiOSAppOnMac {
if ProcessInfo.processInfo.isiOSAppOnMac || ProcessInfo.processInfo.isMacCatalystApp {
splitView
} else {
splitView