Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save franckclement/97e1d5a0ef1ef71812cf78f74b922632 to your computer and use it in GitHub Desktop.
Save franckclement/97e1d5a0ef1ef71812cf78f74b922632 to your computer and use it in GitHub Desktop.
import MapKit
import RxSwift
import RxCocoa
extension MKLocalSearchCompleter: HasDelegate {
public typealias Delegate = MKLocalSearchCompleterDelegate
}
class RxMKLocalSearchCompleterDelegateProxy:
DelegateProxy<MKLocalSearchCompleter, MKLocalSearchCompleterDelegate>,
DelegateProxyType,
MKLocalSearchCompleterDelegate {
public weak private(set) var localSearchCompleter: MKLocalSearchCompleter?
public init(localSearchCompleter: ParentObject) {
self.localSearchCompleter = localSearchCompleter
super.init(parentObject: localSearchCompleter,
delegateProxy: RxMKLocalSearchCompleterDelegateProxy.self)
}
static func registerKnownImplementations() {
self.register { RxMKLocalSearchCompleterDelegateProxy(localSearchCompleter: $0) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment