We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2881c commit 8bdab6bCopy full SHA for 8bdab6b
Fosdem/Views/Lists/EventListView.swift
@@ -42,17 +42,13 @@ struct EventListView: View {
42
EventDetailView(event)
43
}).toolbar {
44
ToolbarTitleMenu {
45
- ForEach(ListPredicateType.all, id: \.self) { type in
46
- Button {
47
- self.list = type
48
- } label: {
+ Picker("List grouping", selection: $list) {
+ ForEach(ListPredicateType.all, id: \.self) { type in
49
Label(ListPredicateType.getName(type), systemImage: ListPredicateType.getIcon(type))
50
- .foregroundStyle(self.list == type ? .primary : .secondary)
51
}
52
+
53
54
- }
55
- .toolbar {
56
ToolbarItem(placement: .topBarTrailing) {
57
Menu {
58
Button(action: {
0 commit comments