SearchSuggestionView

public class SearchSuggestionView : SimpleItemView

SearchSuggestionView displays a suggestion retrieved from the clipboard.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

Public

  • Configures an instance of SearchSuggestionView using a custom theme, suggestion term and suggestion selection handler. This method should be used if the SearchSuggestionView is initialized via IB.

    Declaration

    Swift

    public func setup(withTheme theme: SearchingThemeProtocol, selectionHandler: SearchSuggestionSelectionHandler?)

    Parameters

    withTheme

    Theme conforming to the SearchingThemeProtocol. For the default theme use SearchingTheme.default.

    selectionHandler

    An object being handler for suggestion selection callback

  • Inserts new suggestion

    Declaration

    Swift

    public func insert(suggestion: SearchSuggestion)

    Parameters

    suggestion

    Suggestion that should be displayed.