We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62257c2 + d60988f commit c82c3a2Copy full SHA for c82c3a2
1 file changed
arcgis_map_sdk_ios/ios/arcgis_map_sdk_ios/Sources/arcgis_map_sdk_ios/MapContentView.swift
@@ -34,11 +34,6 @@ struct MapContentView: View {
34
.onVisibleAreaChanged { polygon in
35
viewModel.onVisibleAreaChanged?(polygon)
36
}
37
- .onChange(of: viewModel.map.basemap?.loadStatus) { newValue in
38
- if let newValue {
39
- viewModel.onLoadStatusChanged?(newValue)
40
- }
41
42
.task {
43
// Store the mapViewProxy for external access
44
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 {
+ viewModel.onLoadStatusChanged?(loadStatus)
+ }
53
54
55
0 commit comments