Generic Instance Method

alert(item:content:)

Presents an alert to the user.

Declaration

func alert<Item>(item: Binding<Item?>, content: (Item) -> Alert) -> some View where Item : Identifiable