ViewSheetPresentationOptions
public struct ViewSheetPresentationOptions
A model providing configuration options for SwiftUI sheet presentations.
-
An enum defining the presentation modes for a SwiftUI sheet presentation.
See moreDeclaration
Swift
public enum PresentationMode : String
-
The presentation mode of the sheet.
Declaration
Swift
public var presentationMode: PresentationMode
-
Specifies detents to the be used for the sheet.
Declaration
Swift
public var presentationDetents: Set<PresentationDetent>?
-
Specifies the content interaction mode of the sheet. This is useful if you have content which needs to scroll inside your sheet.
Declaration
Swift
public var contentInteractionMode: PresentationContentInteraction
-
Specifies whether a user can interact with the content behind the sheet.
Declaration
Swift
public var backgroundInteractionMode: PresentationBackgroundInteraction
-
The initializer.
Declaration
Swift
public init(presentationMode: PresentationMode? = nil, presentationDetents: Set<PresentationDetent>? = nil, contentInteractionMode: PresentationContentInteraction? = nil, backgroundInteractionMode: PresentationBackgroundInteraction? = nil)
Parameters
presentationMode
The presentation mode of the sheet.
presentationDetents
Specifies detents to the be used for the sheet.
contentInteractionMode
Specifies the content interaction mode of the sheet.
backgroundInteractionMode
Specifies whether a user can interact with the content behind the sheet.