Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SwiftUI support #167

Merged
merged 48 commits into from
Apr 30, 2021
Merged

feat: SwiftUI support #167

merged 48 commits into from
Apr 30, 2021

Conversation

VladislavFitz
Copy link
Contributor

@VladislavFitz VladislavFitz commented Mar 17, 2021

Summary

This PR introduces the components for SwiftUI support

InstantSearch SwiftUI

A collection of basic search SwiftUI views

  • SearchBar - a specialised view for receiving search query text from the user.
  • HitsList - a view presenting the list of search hits
  • FacetList – a view presenting the list of facets
  • HierarchicalList - a view presenting the list of hierarchical facets
  • FacetRow - a view presenting the facet value and its selection state
  • Text+Highlighting - Text extensions allowing to build an attributed Text view with HighlightedString and TaggedString components provided by InstantSearch

InstantSearch Core

The Core provides the implementations of Controller protocols adapted for SwiftUI which can be easily connected to the existing Interactors.

  • QueryInputObservableController
  • HitsObservableController
  • FacetListObservableController
  • HierarchicalObservableController
  • StatsObservableController
  • FilterClearObservableController
  • SwitchIndexObservableController

@VladislavFitz VladislavFitz changed the title SwiftUI support feat: SwiftUI support Mar 30, 2021
@VladislavFitz VladislavFitz requested a review from aallam April 23, 2021 11:09
@VladislavFitz VladislavFitz marked this pull request as ready for review April 23, 2021 11:09
Copy link
Member

@aallam aallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! SwiftUI to the moon 🚀

@VladislavFitz VladislavFitz merged commit 2b027f2 into master Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants