RxNowCastMapView is an Reactive Extension for NowCastMapView.
RxNowCastMapView is available through CocoaPods and Carthage.
RxBaseTimeModel never throws .onError and .onCompleted.
let model = RxBaseTimeModel()
model.baseTime.subscribe(onNext: { baseTime in
/// fetched!!!
}).addDisposableTo(bag)
model.fetch()
let rainLevelsModel = RainLevelsModel(baseTime: baseTime)
rainLevelsModel.rx.rainLevels(with: request).subscribe(onNext: { result in
switch result {
case .succeeded(_, _):
// process RainLevels
default:
break
}
}).addDisposableTo(bag)
RxNowCastMapView is available under the MIT license. See the LICENSE file for more info.