Generic Instance Method

actionSheet(item:content:)

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

Declaration

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