From b7682841975b2a4d9fb190ebb97a0b01290f6745 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 24 May 2022 09:15:21 +0200 Subject: [PATCH] Enforce .sidebar on Mac Drops annoying side inset. --- Passepartout/App/Constants/Theme.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Passepartout/App/Constants/Theme.swift b/Passepartout/App/Constants/Theme.swift index acebd9b4..ec5f1ca7 100644 --- a/Passepartout/App/Constants/Theme.swift +++ b/Passepartout/App/Constants/Theme.swift @@ -91,17 +91,13 @@ extension View { @ViewBuilder private func themeSidebarListStyle() -> some View { - #if targetEnvironment(macCatalyst) - self - #else switch themeIdiom { - case .pad: - listStyle(.sidebar) + case .phone: + listStyle(.insetGrouped) default: - listStyle(.insetGrouped) + listStyle(.sidebar) } - #endif } @ViewBuilder