Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active January 16, 2023 16:42
Embed
What would you like to do?
func sheet<Content>(
isPresented: Binding<Bool>,
onDismiss: (() -> Void)? = nil,
content: @escaping () -> Content
) -> some View where Content : View
func sheet<Item, Content>(
item: Binding<Item?>,
onDismiss: (() -> Void)? = nil,
content: @escaping (Item) -> Content
) -> some View where Item : Identifiable, Content : View
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment