notohiro / RxNowCastMapView

Reactive Extension for NowCastMapView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Reactive Extension for NowCastMapView

License:MIT License


Languages

Language:Swift 78.8%Language:Ruby 11.5%Language:Objective-C 9.7%