My attempt to build weather app utilizing clean architecture approaches and modern tools.
-
(B)VIPER is the architecture of the app. See more on that in Scenes README.
Scene module tests are almost not there yet, sorry. Working on that. See UserCityListPresenterTests for an example for now.
-
UI implementation is heavily based on storyboards, view controller containment (both dynamic and static) and sometimes storyboard references. The containment reflects module structure of (B)VIPER. As result every view controller is either (not both):
- View managing "leaf" view;
- ContainerView managing some number of opaque child views (read: container view controller).
Each such a view controller is an implementation of View in the corresponding module.
-
UI is not well thought-out, to say the least. Unfortunately it was not the highest priority so far, due to focus on other things.
-
At some places RxSwift is used to implement dynamic bindings. There's more room for that/some things (in terms of implementation) need to be switched to RxSwift to improve the performance.
-
City lookup is implemented via lookup in pre-packaged Core Data store built from city list json available at OpenWeatherMap.
-
City search by zip is not there yet. Though there's primitive UI solution for that.
Please note that CocoaPods are not checked in into the repository, so after checkout they need to be installed via the two following commands:
-
Install the compatible version of the pod tool into the source tree:
bundle install
-
Install the compatible version of the pods using just installed pod tool:
bundle exec pod install