Skip to content

Glossary: SwiftUI

dismiss

Also written: @Environment(\.dismiss), dismiss()

An action read from the environment that closes the current screen when called, like tapping Back. The detail screen calls it after adding a drink to the order.

Where the book teaches it

Related terms

@EnvironmentNavigationStack