SearchView

public class SearchView : BarContainerView
extension SearchView: SearchBarViewDelegate
extension SearchView: SearchSuggestionSelectionHandler

SearchView` provides the full functionality with all available search components in default layout.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • An instance of the SearchViewDelegate.

    Declaration

    Swift

    public weak var delegate: SearchViewDelegate?
  • Configures the view with the SearchViewConfiguration object. This method should be used if the SearchView is initialized via IB.

    Declaration

    Swift

    public func setup(withConfiguration configuration: SearchViewConfiguration)
  • Clears the search results view and the search field.

    Declaration

    Swift

    public func clear()
  • Reloads data in the search results view and turns on editing in the search field.

    Declaration

    Swift

    public func reload()
  • Sets text on the search bar and triggers searching if text is not empty.

    Declaration

    Swift

    public func setQuery(_ query: String?)
  • Adds custom view under the search suggestions view.

    Declaration

    Swift

    public func addCustomView(_ customView: UIView)
  • Removes custom view.

    Declaration

    Swift

    public func removeCustomView()