Enforce .sidebar on Mac

Drops annoying side inset.
This commit is contained in:
Davide De Rosa 2022-05-24 09:15:21 +02:00
parent f752594d3c
commit b768284197
1 changed files with 3 additions and 7 deletions

View File

@ -91,17 +91,13 @@ extension View {
@ViewBuilder @ViewBuilder
private func themeSidebarListStyle() -> some View { private func themeSidebarListStyle() -> some View {
#if targetEnvironment(macCatalyst)
self
#else
switch themeIdiom { switch themeIdiom {
case .pad: case .phone:
listStyle(.sidebar) listStyle(.insetGrouped)
default: default:
listStyle(.insetGrouped) listStyle(.sidebar)
} }
#endif
} }
@ViewBuilder @ViewBuilder