Skip to content

Commit b987e9a

Browse files
authored
Merge pull request #167 from Esri/zach/fixSettingsPane
2 parents 777bc70 + d77beb3 commit b987e9a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Shared/Samples/Add dynamic entity layer/AddDynamicEntityLayerView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ struct AddDynamicEntityLayerView: View {
5151
Button("Dynamic Entity Settings") {
5252
isShowingSettings = true
5353
}
54+
.sheet(isPresented: $isShowingSettings, detents: [.medium], dragIndicatorVisibility: .visible) {
55+
SettingsView()
56+
.environmentObject(model)
57+
}
5458
}
5559
}
5660
.overlay(alignment: .top) {
@@ -63,10 +67,6 @@ struct AddDynamicEntityLayerView: View {
6367
.padding(.vertical, 6)
6468
.background(.thinMaterial, ignoresSafeAreaEdges: .horizontal)
6569
}
66-
.sheet(isPresented: $isShowingSettings, detents: [.medium], dragIndicatorVisibility: .visible) {
67-
SettingsView()
68-
.environmentObject(model)
69-
}
7070
.task {
7171
// This will update `connectionStatus` when the stream service
7272
// connection status changes.

Shared/Samples/Change map view background/ChangeMapViewBackgroundView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ struct ChangeMapViewBackgroundView: View {
3232
Button("Background Grid Settings") {
3333
isShowingSettings = true
3434
}
35+
.sheet(isPresented: $isShowingSettings, detents: [.medium], dragIndicatorVisibility: .visible) {
36+
SettingsView()
37+
.environmentObject(model)
38+
}
3539
}
3640
}
37-
.sheet(isPresented: $isShowingSettings, detents: [.medium], dragIndicatorVisibility: .visible) {
38-
SettingsView()
39-
.environmentObject(model)
40-
}
4141
}
4242
}

0 commit comments

Comments
 (0)