Latest 4.4.0
Homepage https://github.com/RxSwiftCommunity/RxMKMapView
License MIT
Platforms ios 8.0, requires ARC
Dependencies RxCocoa, RxSwift
Frameworks Foundation
Authors

RxMKMapView is a RxSwift wrapper for MKMapView (MapKit) delegate providing a Reactive Delegate Proxy as well as a bindable annotations interface to dynamically change the "data source" of your map.

CircleCI
Version
License
Platform
Carthage compatible

Installation

CocoaPods

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

pod "RxMKMapView"

Carthage

Add this to Cartfile

github "RxSwiftCommunity/RxMKMapView"

Example Usages

// MARK: Setup MKMapView

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

// MARK: Bind Annotations

requestForAnnotations() // Observable<[MyMapAnnotation]>
    .asDriver(onErrorJustReturn: [])
    .drive(mapView.rx.annotations)
    .disposed(by: disposeBag)

// 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)

Requirements

RxMKMapView requires Swift 4.0 and RxSwift (4.4).

License

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

Latest podspec

{
    "name": "RxMKMapView",
    "version": "4.4.0",
    "summary": "Reactive wrapper for MKMapView `delegate`",
    "description": "RxMKMapView is a Reactive wrapper for MKMapView `delegate`.nn## InstallationnnRxMKMapView is available through [CocoaPods](http://cocoapods.org). To installnit, simply add the following line to your Podfile:nn```rubynpod "RxMKMapView"n```nn## Example Usagesnn```swiftn// MARK: Setup MKMapViewnlet mapView = MKMapView(frame: view.frame)nview.addSubview(mapView)nn// MARK: Bind AnnotationsnnrequestForAnnotations() // Observablen    .asDriver(onErrorJustReturn: [])n    .drive(mapView.rx.annotations)n    .disposed(by: disposeBag)nn// MARK: Respond to Loading EventsnmapView.rx.willStartLoadingMapn       .asDriver()n       .drive(onNext: {n           print("map started loadedloading)n       })n       .disposed(by: disposeBag)nnmapView.rx.didFinishLoadingMapn       .asDriver()n       .drive(onNext: {n           print("map finished loading")n       })n       .disposed(by: disposeBag)n```",
    "homepage": "https://github.com/RxSwiftCommunity/RxMKMapView",
    "license": "MIT",
    "authors": {
        "RxSwift Community": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RxSwiftCommunity/RxMKMapView.git",
        "tag": "4.4.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*.swift",
    "dependencies": {
        "RxCocoa": [
            "~> 4.4"
        ],
        "RxSwift": [
            "~> 4.4"
        ]
    },
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This