Minor UI fixes for macOS Big Sur

This commit is contained in:
Arkadiusz Fal
2021-12-02 20:22:55 +01:00
parent c4b5c7ce41
commit dd995105b5
10 changed files with 22 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ struct BrowsingSettings: View {
}
Section(header: SettingsHeader(text: "Sections")) {
#if os(macOS)
let list = List(VisibleSection.allCases, id: \.self) { section in
let list = ForEach(VisibleSection.allCases, id: \.self) { section in
VisibleSectionSelectionRow(
title: section.title,
selected: visibleSections.contains(section)
@@ -35,6 +35,8 @@ struct BrowsingSettings: View {
list
.listStyle(.inset)
}
Spacer()
}
#else
ForEach(VisibleSection.allCases, id: \.self) { section in