@@ -20,25 +20,47 @@ extension View {
2020 /// This modifier only affects the sheet presentation itself when applied to the
2121 /// top-level view within a sheet. It does not affect the content's corner radius.
2222 ///
23- /// supported platforms: iOS (ignored on unsupported platforms)
24- /// ignored on: older than iOS 15
23+ /// supported platforms: iOS 15+, Gtk4 (ignored on unsupported platforms)
2524 ///
2625 /// - Parameter radius: The corner radius in pixels.
2726 /// - Returns: A view with the presentation corner radius preference set.
2827 public func presentationCornerRadius( _ radius: Double ) -> some View {
2928 preference ( key: \. presentationCornerRadius, value: radius)
3029 }
31-
30+
31+ /// Sets the visibility of a sheet's drag indicator.
32+ ///
33+ /// This modifier only affects the sheet presentation itself when applied to the
34+ /// top-level view within a sheet.
35+ ///
36+ /// supported platforms: iOS 15+ (ignored on unsupported platforms)
37+ ///
38+ /// - Parameter visibiliy: visible or hidden
39+ /// - Returns: A view with the presentation corner radius preference set.
3240 public func presentationDragIndicatorVisibility(
3341 _ visibility: PresentationDragIndicatorVisibility
3442 ) -> some View {
3543 preference ( key: \. presentationDragIndicatorVisibility, value: visibility)
3644 }
37-
45+
46+ /// Sets the background of a sheet.
47+ ///
48+ /// This modifier only affects the sheet presentation itself when applied to the
49+ /// top-level view within a sheet.
50+ ///
51+ /// - Parameter color: the background color
52+ /// - Returns: A view with the presentation corner radius preference set.
3853 public func presentationBackground( _ color: Color ) -> some View {
3954 preference ( key: \. presentationBackground, value: color)
4055 }
41-
56+
57+ /// Sets wether the user should be able to dismiss the sheet themself.
58+ ///
59+ /// This modifier only affects the sheet presentation itself when applied to the
60+ /// top-level view within a sheet.
61+ ///
62+ /// - Parameter isDisabled: is it disabled
63+ /// - Returns: A view with the presentation corner radius preference set.
4264 public func interactiveDismissDisabled( _ isDisabled: Bool = true ) -> some View {
4365 preference ( key: \. interactiveDismissDisabled, value: isDisabled)
4466 }
0 commit comments