Concept

Sheet is used in SwiftUI to present a view modally from the bottom of the screen.

It allows apps to:

show temporary content
present a new screen over the current one
dismiss the screen when finished

Core flow:

Button / State Change → Sheet Presented → Dismiss

What It Does

A sheet displays content above the current view without replacing it.

It is commonly used for:

forms
quick actions
extra details
temporary tasks

The user can usually dismiss it by:

dragging it down
tapping a dismiss button
calling dismiss()

Basic Structure

.sheet(isPresented: $showSheet) {
    SheetView()
}

Here:

isPresented → controls whether the sheet appears
SheetView() → content shown inside the sheet

Using State With Sheet