1pod
RxMKMapView is a Reactive wrapper for MKMapView delegate
.
RxMKMapView is available through CocoaPods. To install it, simply add the following line to your Podfile:
ruby
pod "RxMKMapView"
```swift
// MARK: Setup MKMapView
let mapView = MKMapView(frame: view.frame) view.addSubview(mapView)
// MARK: Respond to Loading Events mapView.rx.willStartLoadingMap .asDriver() .drive(onNext: { print("map started loadedloading) }) .disposed(by: disposeBag)
mapView.rx.didFinishLoadingMap .asDriver() .drive(onNext: { print("map finished loading") }) .disposed(by: disposeBag) ```
License: MIT