Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
/ RxNowCastMapView Public archive

Reactive Extension for NowCastMapView

License

Notifications You must be signed in to change notification settings

notohiro/RxNowCastMapView

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published