From da48af68a0062555ad25fd74819eb1e48e8d87ae Mon Sep 17 00:00:00 2001 From: Morris Richman Date: Thu, 1 Sep 2022 02:14:41 -0700 Subject: [PATCH] Added onAppear to BridgeView fetchData --- Seattle Bridge Tracker/BridgeView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Seattle Bridge Tracker/BridgeView.swift b/Seattle Bridge Tracker/BridgeView.swift index 97c6f21..ba49361 100644 --- a/Seattle Bridge Tracker/BridgeView.swift +++ b/Seattle Bridge Tracker/BridgeView.swift @@ -128,6 +128,9 @@ struct BridgeView: View { .clipped() .navigationBarHidden(true) } + .onAppear { + viewModel.fetchData(repeatFetch: false) + } } var status: some View { Text(bridge.status.rawValue.capitalized)