Generic Instance Method

sheet(item:onDismiss:content:)

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

Declaration

func sheet<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View