Skip to content

nateboxer/RxMKMapView

 
 

Repository files navigation

RxMKMapView

RxMKMapView is a RxSwift wrapper for MKMapView (MapKit) delegate.

Build Status Version License Platform

Installation

RxMKMapView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RxMKMapView"

Example Usages

// MARK: Setup MKMapView

let mapView = MKMapView(frame: view.frame)
view.addSubview(mapView)

// MARK: Responding to Loading Events

mapView.rx.willStartLoadingMap
    .subscribe(onNext: {
        print("rx.willStartLoadingMap")
    })
    .addDisposableTo(disposeBag)

mapView.rx.didFinishLoadingMap
    .subscribe(onNext { _ in
        print("rx.didFinishLoadingMap")
    })
    .addDisposableTo(disposeBag)

Requirements

RxMKMapView requires Swift 3.0 and RxSwift (3.0.0-beta.2).

License

RxMKMapView is available under the MIT license. See the LICENSE file for more info.

About

RxMKMapView is a RxSwift wrapper for MKMapView `delegate`.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 90.7%
  • Ruby 7.2%
  • Objective-C 2.1%