Provides pre-built UI components following best practice principles for Mobile for iOS that remain independent from external frameworks
Integrate into your existing UI or app, or use InstantSearch templates
Comes with a default CSS theme, completely customizable
Manages all business logic for search requests, responses, and states
Progressive customization of components (use, extend, or customize)
Compatible with all current versions of the underlying iOS library
Code is entirely open source and available on GitHub
Bootstrap your application, with create-instantsearch-app, NPM, ...
SEARCH (GET A FREE ACCOUNT HERE)
struct ContentView: View {
@ObservedObject var queryInputController: QueryInputObservableController
@ObservedObject var hitsController: HitsObservableController<StockItem>
@State private var isEditing = false
var body: some View {
VStack(spacing: 7) {
SearchBar(text: $queryInputController.query,
isEditing: $isEditing,
onSubmit: queryInputController.submit)
HitsList(hitsController) { hit, _ in
VStack(alignment: .leading, spacing: 10) {
Text(hit?.name ?? "")
.padding(.all, 10)
Divider()
}
}
}
}
}