We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eab0ab4 + 0e1632d commit fff325aCopy full SHA for fff325a
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
@@ -81,7 +81,7 @@ struct FloatingPanel<Content>: View where Content: View {
81
.clipShape(
82
RoundedCorners(
83
corners: isPortraitOrientation ? [.topLeft, .topRight] : .allCorners,
84
- radius: 10
+ radius: .cornerRadius
85
)
86
87
.shadow(radius: 10)
@@ -223,6 +223,15 @@ private extension CGFloat {
223
static let handleFrameHeight: CGFloat = 30
224
225
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
+ }()
235
}
236
237
private extension Color {
0 commit comments