Array

public extension Array where Element == TKAutocompleting
extension Array where Element: StopVisits

Available where Element == TKAutocompleting

  • Kicks off autocompletion that’s monitoring the provided input string, and starts to autocomplete whenever the text is changing.

    Declaration

    Swift

    func autocomplete(_ text: Observable<(String, forced: Bool)>, mapRect: MKMapRect) -> Observable<[TKAutocompletionResult]>

    Parameters

    text

    Input text, which should fire when user enters text

    mapRect

    Map rect to bias results towards

    Return Value

    Stream of autocompletion results. For each input change, it can fire multiple times as more results are found by different providers (i.e., elements in this array).

Available where Element: StopVisits