Skip to content

Instantly share code, notes, and snippets.

@ncreated
Last active July 17, 2017 19:57
Show Gist options
  • Save ncreated/00f1f540c672dd407cc8caab98ab2e05 to your computer and use it in GitHub Desktop.
Save ncreated/00f1f540c672dd407cc8caab98ab2e05 to your computer and use it in GitHub Desktop.
Medium blogpost snippet
final class Autocomplete {
// MARK: - Properties
private let provider: AutocompleteProvider
// MARK: - Initializers
init(provider: AutocompleteProvider) {
self.provider = provider
}
// MARK: - Public
func autocomplete(text: Observable<String>) -> (result: Driver<AutocompleteResult>,
isBusy: Driver<Bool>) {
return (result: .empty(), isBusy: .empty()) // TODO
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment