๐ฆdismiss
SwiftUI โฉ view โฉ environment โฉ value โฉ dismiss
An action that dismisses the current presentation.
Use this environment value to get the DismissAction
instance for the current Environment
. Then call the instance (dismiss()
) to perform the dismissal.
You call the instance directly because it defines a callAsFunction()
method that Swift calls when you call the instance. You can use this action to:
dismiss a modal presentation, like a sheet or a popover.
pop the current view from a
NavigationStack
.
Last updated