SheetPresentationConfiguring
public protocol SheetPresentationConfiguring : Equatable, Identifiable
This protocol configures the presentation of a SwiftUI sheet.
-
A unique identifier.
Declaration
Swift
var id: UUID { get } -
Model data for the sheet being presented.
Declaration
Swift
var sheet: (any Sheetable)? { get set } -
A Boolean which determines whether the sheet should be presented.
Declaration
Swift
var shouldPresentSheet: Bool { get set } -
A Boolean which determines whether the sheet should be presented as fullscreen.
Declaration
Swift
var shouldPresentFullscreen: Bool { get set } -
The presentation mode of the sheet.
Declaration
Swift
var presentationMode: ViewSheetPresentationOptions.PresentationMode { get set } -
Specifies detents to the be used for the sheet.
Declaration
Swift
var presentationDetents: Set<PresentationDetent> { get set } -
Specifies the content interaction mode of the sheet. This is useful if you have content which needs to scroll inside your sheet.
Declaration
Swift
var contentInteractionMode: PresentationContentInteraction { get set } -
Specifies whether the user can interact with content behind the presented sheet.
Declaration
Swift
var backgroundInteractionMode: PresentationBackgroundInteraction { get set } -
A closure to be run when a sheet is dismissed.
Declaration
Swift
var dismissalClosure: SheetDismissalClosure? { get set } -
Provides a new sheet.
Declaration
Swift
func updateSheet(_ sheet: any Sheetable)Parameters
sheetA new sheet to be presented.
-
Dismisses the current sheet.
Declaration
Swift
func dismissSheet() -
Removes the current sheet, resetting this object to a default state.
Declaration
Swift
func removeCurrentSheet()
View on GitHub