Generic Instance Method


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


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

See Also

Presenting Action Sheets

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

Presents an action sheet when a given condition is true.