Skip to content

Commit

Permalink
feat(app): pull to refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed May 21, 2024
1 parent 3111ec6 commit d55ddf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/metro-now/Core/PlatformList/PlatformListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ struct PlatformsListView: View {
return
}

do {
departuresByGtfsID = try await viewModel.getData(gtfsIDs: station.properties.platforms.map(\.gtfsId))
} catch {}
}
.refreshable {
guard let station else {
return
}

do {
departuresByGtfsID = try await viewModel.getData(gtfsIDs: station.properties.platforms.map(\.gtfsId))
} catch {}
Expand Down

0 comments on commit d55ddf9

Please sign in to comment.