Skip to content

Commit 6f5d326

Browse files
committed
set popover frame
1 parent a3148d7 commit 6f5d326

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Shared/Samples/Browse WMS layers/BrowseWMSLayersView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,12 @@ struct BrowseWMSLayersView: View {
5656
isListPresented.toggle()
5757
}
5858
.disabled(layerModels.isEmpty)
59-
.sheet(isPresented: $isListPresented) {
59+
.popover(isPresented: $isListPresented) {
6060
NavigationStack {
6161
WMSLayerListView(models: layerModels, selection: $selection)
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
}

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)