Array
public extension Array 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: Observable<MKMapRect>) -> Observable<[TKAutocompletionResult]>
Parameters
text
Input text, which should fire when user enters text
mapRect
Map rect to bias results towards, which should fire whenever map moves and provide an initial value
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).