Skip to content

Commit

Permalink
fix(iosApp): select date in the schedule Picker.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Apr 13, 2024
1 parent 646a07c commit 51ac11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions iosApp/iosApp/screens/agenda/Agenda.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Agenda: View {
agendas: [String: AgendaUi],
onFavoriteClicked: @escaping (TalkItemUi) -> ()
) {
self.dates = agendas.keys.map({ key in key })
self.dates = agendas.keys.map({ key in key }).sorted()
self.selectedDate = self.dates.first ?? ""
self.agendas = agendas
self.onFavoriteClicked = onFavoriteClicked
Expand All @@ -32,7 +32,7 @@ struct Agenda: View {
if (self.agendas.keys.count > 1) {
Picker("Days:", selection: $selectedDate) {
ForEach(self.dates.indices, id: \.self) { index in
Text(self.dates[index]).tag(index)
Text(self.dates[index]).tag(self.dates[index])
}
}
.pickerStyle(SegmentedPickerStyle())
Expand Down

0 comments on commit 51ac11d

Please sign in to comment.