Skip to content

Commit 8248660

Browse files
authored
Merge pull request #664 from Esri/chrisw/lineofsightfix
[Fix] Update frame on popover
2 parents 6aaece6 + 011ee5e commit 8248660

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Shared/Samples/Browse WMS layers/BrowseWMSLayersView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ struct BrowseWMSLayersView: View {
6262
.navigationBarTitleDisplayMode(.inline)
6363
.navigationTitle("Layer Visibility")
6464
.presentationDetents([.medium])
65-
.frame(idealWidth: 320, idealHeight: 380)
6665
.toolbar {
6766
ToolbarItem(placement: .topBarTrailing) {
6867
Button("Done") {
@@ -71,6 +70,7 @@ struct BrowseWMSLayersView: View {
7170
}
7271
}
7372
}
73+
.frame(idealWidth: 320, idealHeight: 380)
7474
}
7575
}
7676
}
@@ -120,7 +120,6 @@ extension BrowseWMSLayersView {
120120
.onChange(of: model.isVisible) { updateSelection() }
121121
}
122122
}
123-
.listStyle(.plain)
124123
}
125124

126125
/// Updates the selection for given `isVisible`.
-30.2 KB
Loading

Shared/Samples/Show line of sight between geoelements/ShowLineOfSightBetweenGeoelementsView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct ShowLineOfSightBetweenGeoelementsView: View {
4848
Button("Settings") {
4949
isPresented = true
5050
}
51-
.sheet(isPresented: $isPresented) {
51+
.popover(isPresented: $isPresented) {
5252
settingsSheet
5353
}
5454
}
@@ -101,6 +101,7 @@ struct ShowLineOfSightBetweenGeoelementsView: View {
101101
}
102102
}
103103
}
104+
.frame(idealWidth: 320, idealHeight: 380)
104105
}
105106
}
106107

0 commit comments

Comments
 (0)