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
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