Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marinbenc/ReactiveWeatherExample
A simple iOS weather app using the MVVM pattern and RxSwift framework.
https://github.com/marinbenc/ReactiveWeatherExample
Last synced: 2 months ago
JSON representation
A simple iOS weather app using the MVVM pattern and RxSwift framework.
- Host: GitHub
- URL: https://github.com/marinbenc/ReactiveWeatherExample
- Owner: marinbenc
- License: mit
- Created: 2015-10-22T20:22:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T07:30:14.000Z (almost 7 years ago)
- Last Synced: 2024-11-09T04:39:57.301Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 2.38 MB
- Stars: 201
- Watchers: 12
- Forks: 35
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rxswift - ReactiveWeatherExample
README
# ReactiveWeatherExample
A simple iOS weather app using the MVVM pattern and RxSwift framework.#How it works
There's a UITextField in the ViewController which sets a searchText property in the ViewModel once it's changed. The ViewModel then iniates a JSON request for weather data from openweathermap.org, and creates a new Weather object, which acts as the model.Once the Weather object is set, properties in the ViewModel are set accordingly. Since outlets in the ViewController are bound to properties in the ViewModel, they get set automatically.
RxSwift: https://github.com/ReactiveX/RxSwift
OpenWeatherMap: https://openweathermap.org
Alamofire: https://github.com/Alamofire/Alamofire