@@ -6,7 +6,8 @@ public struct PreferenceValues: Sendable {
66 presentationDetents: nil ,
77 presentationCornerRadius: nil ,
88 presentationDragIndicatorVisibility: nil ,
9- presentationBackground: nil
9+ presentationBackground: nil ,
10+ interactiveDismissDisabled: nil
1011 )
1112
1213 public var onOpenURL : ( @Sendable @MainActor ( URL ) -> Void ) ?
@@ -17,23 +18,28 @@ public struct PreferenceValues: Sendable {
1718 /// The corner radius for a sheet presentation. Only applies to the top-level view in a sheet.
1819 public var presentationCornerRadius : Double ?
1920
20- /// The drag indicator visibiity for a sheet presentation. Only applies to the top-level view in a sheet.
21+ /// The drag indicator visibility for a sheet presentation. Only applies to the top-level view in a sheet.
2122 public var presentationDragIndicatorVisibility : PresentationDragIndicatorVisibility ?
2223
24+ /// The backgroundcolor of a sheet. Only applies to the top-level view in a sheet
2325 public var presentationBackground : Color ?
2426
27+ public var interactiveDismissDisabled : Bool ?
28+
2529 public init (
2630 onOpenURL: ( @Sendable @MainActor ( URL ) -> Void ) ? ,
2731 presentationDetents: [ PresentationDetent ] ? = nil ,
2832 presentationCornerRadius: Double ? = nil ,
2933 presentationDragIndicatorVisibility: PresentationDragIndicatorVisibility ? = nil ,
30- presentationBackground: Color ?
34+ presentationBackground: Color ? = nil ,
35+ interactiveDismissDisabled: Bool ? = nil
3136 ) {
3237 self . onOpenURL = onOpenURL
3338 self . presentationDetents = presentationDetents
3439 self . presentationCornerRadius = presentationCornerRadius
3540 self . presentationDragIndicatorVisibility = presentationDragIndicatorVisibility
3641 self . presentationBackground = presentationBackground
42+ self . interactiveDismissDisabled = interactiveDismissDisabled
3743 }
3844
3945 public init ( merging children: [ PreferenceValues ] ) {
@@ -53,5 +59,6 @@ public struct PreferenceValues: Sendable {
5359 presentationCornerRadius = children. first? . presentationCornerRadius
5460 presentationDragIndicatorVisibility = children. first? . presentationDragIndicatorVisibility
5561 presentationBackground = children. first? . presentationBackground
62+ interactiveDismissDisabled = children. first? . interactiveDismissDisabled
5663 }
5764}
0 commit comments