Skip to content

Commit 8bdab6b

Browse files
committed
Fix selector
1 parent 3d2881c commit 8bdab6b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Fosdem/Views/Lists/EventListView.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,13 @@ struct EventListView: View {
4242
EventDetailView(event)
4343
}).toolbar {
4444
ToolbarTitleMenu {
45-
ForEach(ListPredicateType.all, id: \.self) { type in
46-
Button {
47-
self.list = type
48-
} label: {
45+
Picker("List grouping", selection: $list) {
46+
ForEach(ListPredicateType.all, id: \.self) { type in
4947
Label(ListPredicateType.getName(type), systemImage: ListPredicateType.getIcon(type))
50-
.foregroundStyle(self.list == type ? .primary : .secondary)
5148
}
5249
}
50+
5351
}
54-
}
55-
.toolbar {
5652
ToolbarItem(placement: .topBarTrailing) {
5753
Menu {
5854
Button(action: {

0 commit comments

Comments
 (0)