File tree Expand file tree Collapse file tree 1 file changed +5
-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 +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ struct MapContentView: View {
34
34
. onVisibleAreaChanged { polygon in
35
35
viewModel. onVisibleAreaChanged ? ( polygon)
36
36
}
37
- . onChange ( of: viewModel. map. basemap? . loadStatus) { newValue in
38
- if let newValue {
39
- viewModel. onLoadStatusChanged ? ( newValue)
40
- }
41
- }
42
37
. task {
43
38
// Store the mapViewProxy for external access
44
39
viewModel. mapViewProxy = mapViewProxy
@@ -50,6 +45,11 @@ struct MapContentView: View {
50
45
viewModel. mapViewProxy = nil
51
46
}
52
47
. ignoresSafeArea ( edges: . all)
48
+ . task {
49
+ for await loadStatus in viewModel. map. $loadStatus {
50
+ viewModel. onLoadStatusChanged ? ( loadStatus)
51
+ }
52
+ }
53
53
}
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments