Skip to content

Commit

Permalink
Added onAppear to BridgeView fetchData
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcrich23 committed Sep 1, 2022
1 parent 802b01e commit da48af6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Seattle Bridge Tracker/BridgeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ struct BridgeView: View {
.clipped()
.navigationBarHidden(true)
}
.onAppear {
viewModel.fetchData(repeatFetch: false)
}
}
var status: some View {
Text(bridge.status.rawValue.capitalized)
Expand Down

0 comments on commit da48af6

Please sign in to comment.