@@ -4,7 +4,9 @@ public struct PreferenceValues: Sendable {
44 public static let `default` = PreferenceValues (
55 onOpenURL: nil ,
66 presentationDetents: nil ,
7- presentationCornerRadius: nil
7+ presentationCornerRadius: nil ,
8+ presentationDragIndicatorVisibility: nil ,
9+ presentationBackground: nil
810 )
911
1012 public var onOpenURL : ( @Sendable @MainActor ( URL ) -> Void ) ?
@@ -15,17 +17,23 @@ public struct PreferenceValues: Sendable {
1517 /// The corner radius for a sheet presentation. Only applies to the top-level view in a sheet.
1618 public var presentationCornerRadius : Double ?
1719
20+ /// The drag indicator visibiity for a sheet presentation. Only applies to the top-level view in a sheet.
1821 public var presentationDragIndicatorVisibility : PresentationDragIndicatorVisibility ?
1922
23+ public var presentationBackground : Color ?
24+
2025 public init (
2126 onOpenURL: ( @Sendable @MainActor ( URL ) -> Void ) ? ,
2227 presentationDetents: [ PresentationDetent ] ? = nil ,
2328 presentationCornerRadius: Double ? = nil ,
24- presentationDragIndicatorVisibility: PresentationDragIndicatorVisibility ? = nil
29+ presentationDragIndicatorVisibility: PresentationDragIndicatorVisibility ? = nil ,
30+ presentationBackground: Color ?
2531 ) {
2632 self . onOpenURL = onOpenURL
2733 self . presentationDetents = presentationDetents
2834 self . presentationCornerRadius = presentationCornerRadius
35+ self . presentationDragIndicatorVisibility = presentationDragIndicatorVisibility
36+ self . presentationBackground = presentationBackground
2937 }
3038
3139 public init ( merging children: [ PreferenceValues ] ) {
@@ -44,5 +52,6 @@ public struct PreferenceValues: Sendable {
4452 presentationDetents = children. first? . presentationDetents
4553 presentationCornerRadius = children. first? . presentationCornerRadius
4654 presentationDragIndicatorVisibility = children. first? . presentationDragIndicatorVisibility
55+ presentationBackground = children. first? . presentationBackground
4756 }
4857}
0 commit comments