File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
arcgis_map_sdk_ios/ios/arcgis_map_sdk_ios/Sources/arcgis_map_sdk_ios Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ struct MapContentView: View {
3434 . onVisibleAreaChanged { polygon in
3535 viewModel. onVisibleAreaChanged ? ( polygon)
3636 }
37- . onChange ( of: viewModel. map. basemap? . loadStatus) { newValue in
38- if let newValue {
39- viewModel. onLoadStatusChanged ? ( newValue)
40- }
41- }
4237 . task {
4338 // Store the mapViewProxy for external access
4439 viewModel. mapViewProxy = mapViewProxy
@@ -50,6 +45,12 @@ struct MapContentView: View {
5045 viewModel. mapViewProxy = nil
5146 }
5247 . ignoresSafeArea ( edges: . all)
48+ . task {
49+ // Listen for load status changes and set the load status text.
50+ for await loadStatus in viewModel. map. $loadStatus {
51+ viewModel. onLoadStatusChanged ? ( loadStatus)
52+ }
53+ }
5354 }
5455 }
5556}
You can’t perform that action at this time.
0 commit comments