|
|
|
@ -65,10 +65,10 @@ struct OngoingView: View { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.navigationTitle("En cours") |
|
|
|
.navigationTitle("En cours") |
|
|
|
.navigationBarTitleDisplayMode(.inline) |
|
|
|
.toolbarBackground(.visible, for: .bottomBar) |
|
|
|
.toolbar(matches.isEmpty ? .hidden : .visible, for: .navigationBar) |
|
|
|
.toolbar(matches.isEmpty ? .hidden : .visible, for: .navigationBar) |
|
|
|
.toolbar { |
|
|
|
.toolbar { |
|
|
|
ToolbarItem(placement: .principal) { |
|
|
|
ToolbarItem(placement: .status) { |
|
|
|
Picker(selection: $sortByField) { |
|
|
|
Picker(selection: $sortByField) { |
|
|
|
Text("tri par date").tag(true) |
|
|
|
Text("tri par date").tag(true) |
|
|
|
Text("tri par terrain").tag(false) |
|
|
|
Text("tri par terrain").tag(false) |
|
|
|
@ -76,11 +76,8 @@ struct OngoingView: View { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
.pickerStyle(.segmented) |
|
|
|
.pickerStyle(.segmented) |
|
|
|
} |
|
|
|
.fixedSize() |
|
|
|
ToolbarItem(placement: .status) { |
|
|
|
.offset(y: -4) |
|
|
|
if matches.isEmpty == false { |
|
|
|
|
|
|
|
Text("\(matches.count) match" + matches.count.pluralSuffix) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|