Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created September 13, 2022 02:40
Show Gist options
  • Select an option

  • Save sturdysturge/cb321c1f8bd894541aff7a9240173590 to your computer and use it in GitHub Desktop.

Select an option

Save sturdysturge/cb321c1f8bd894541aff7a9240173590 to your computer and use it in GitHub Desktop.
import SwiftUI
struct IdentifiableData: Identifiable {
let id = UUID()
let index: Int
}
struct DismissButton: View {
@Environment(\.dismissSearch) var dismissSearch
var body: some View {
Button("Dismiss") {
dismissSearch()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment