WhatWeather - iOS Weather app built in MVC and Dependency Injection. Some Unit tests included.
- Clone this repo
- Open shell window and navigate to project folder
- Run
pod install
- Open
WhatWeather.xcworkspace
and run the project on selected device or simulator
Services are listed below:
- Backend Service - that uses Alamofire library for network communication
- Image Service - getting and caching images using Nuke Library
- Weather service - that use both above services to list cities and returning images.
- Listing some cities
- Pull to refresh
- Detail info
- Sharing
- Animations
Using Seguhandler in view controllers:
-
- Have view controller conform to SegueHandlerType
-
- Add
enum SegueIdentifier: String { }
to conformance
- Add
-
- Manual segues are trigged by
performSegue(with:sender:)
- Manual segues are trigged by
-
prepare(for:sender:)
does aswitch segueIdentifier(for: segue)
to select the appropriate segue case
* Flamur Beqiri
* Using Nuke
* Using Alamofire
* Using SwiftLint
* Nuke: https://github.com/kean/Nuke
* Alamofire: https://github.com/Alamofire/Alamofire
* SwiftLint: https://github.com/realm/SwiftLint