Instance Method

actionSheet(isPresented:content:)

Presents an action sheet when a given condition is true.

Declaration

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

See Also

Presenting Action Sheets

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.