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
presentationModeThe presentation mode of the sheet.
presentationDetentsSpecifies detents to the be used for the sheet.
contentInteractionModeSpecifies the content interaction mode of the sheet.
backgroundInteractionModeSpecifies whether a user can interact with the content behind the sheet.
View on GitHub