swiftui crear barra de búsqueda
struct ContentView: View {
@State private var searchText = ""
var body: some View {
NavigationView {
Text("Searching for \(searchText)")
.searchable(text: $searchText)
.navigationTitle("Searchable Example")
}
}
}
Scary Starling