View Presentation

Define additional views for the view to present under specified conditions.

Topics

Presenting Action Sheets

func actionSheet(isPresented: Binding<Bool>, content: () -> ActionSheet) -> View

Presents an action sheet when a given condition is true.

func actionSheet<T>(item: Binding<T?>, content: (T) -> ActionSheet) -> View

Presents an action sheet using the given item as a data source for the sheet’s content.

Presenting Sheets

See Also

Providing Interactivity

Input and Events

Supply actions for a view to perform in response to user input and system events.

State

Access view preferences and provide child views with configuration data.