Created
October 23, 2018 09:36
-
-
Save franckclement/97e1d5a0ef1ef71812cf78f74b922632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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