RxNowCastMapView 4.2.0

RxNowCastMapView 4.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2018
SPMSupports SPM

Maintained by Hiroshi Noto.



 
Depends on:
RxSwift>= 0
NowCastMapView>= 0
 

  • By
  • Hiroshi Noto

RxNowCastMapView

Swift Build Status CocoaPods Compatible Carthage Compatible Platform license Twitter

RxNowCastMapView is an Reactive Extension for NowCastMapView.

Installation

RxNowCastMapView is available through CocoaPods and Carthage.

Usage

RxBaseTimeModel

RxBaseTimeModel never throws .onError and .onCompleted.

let model = RxBaseTimeModel()

model.baseTime.subscribe(onNext: { baseTime in
  /// fetched!!!
}).addDisposableTo(bag)

model.fetch()

RainLevelsModel.rx

let rainLevelsModel = RainLevelsModel(baseTime: baseTime)

rainLevelsModel.rx.rainLevels(with: request).subscribe(onNext: { result in
	switch result {
	case .succeeded(_, _):
		// process RainLevels
	default:
		break
	}
}).addDisposableTo(bag)

License

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