Skip to content

Commit fff325a

Browse files
authored
Merge pull request #966 from Esri/zach/fixFloatingPanelOnVisionOS
Update corner radius for floating panel on visionOS
2 parents eab0ab4 + 0e1632d commit fff325a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct FloatingPanel<Content>: View where Content: View {
8181
.clipShape(
8282
RoundedCorners(
8383
corners: isPortraitOrientation ? [.topLeft, .topRight] : .allCorners,
84-
radius: 10
84+
radius: .cornerRadius
8585
)
8686
)
8787
.shadow(radius: 10)
@@ -223,6 +223,15 @@ private extension CGFloat {
223223
static let handleFrameHeight: CGFloat = 30
224224

225225
static let minHeight: CGFloat = 66
226+
227+
/// The corner radius of the floating panel.
228+
static let cornerRadius: CGFloat = {
229+
#if os(visionOS)
230+
32
231+
#else
232+
10
233+
#endif
234+
}()
226235
}
227236

228237
private extension Color {

0 commit comments

Comments
 (0)