Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franckclement/6c44f517ad96fe7aa11c3b3876b9dbd9 to your computer and use it in GitHub Desktop.
Save franckclement/6c44f517ad96fe7aa11c3b3876b9dbd9 to your computer and use it in GitHub Desktop.
let searchCompleter = MKLocalSearchCompleter()
let textField = UITextField()
textField.rx.text
.orEmpty
.bind(to: searchCompleter.rx.queryFragment)
.disposed(by: disposeBag)
searchCompleter.rx.didUpdateResults
.subscribe(onNext: { completer in
print(completer.results)
})
.disposed(by: disposeBag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment