flamurbeqiri1 / WhatWeather

WhatWeather - iOS Weather app built with Dependency Injection and MVC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WhatWeather

WhatWeather - iOS Weather app built in MVC and Dependency Injection. Some Unit tests included.

How to run the example?
  • 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.

APP Features!

  • Listing some cities
  • Pull to refresh
  • Detail info
  • Sharing
  • Animations

Using Seguhandler in view controllers:

    1. Have view controller conform to SegueHandlerType
    1. Add enum SegueIdentifier: String { } to conformance
    1. Manual segues are trigged by performSegue(with:sender:)
    1. prepare(for:sender:) does a switch segueIdentifier(for: segue) to select the appropriate segue case

Developer

* Flamur Beqiri

Cocoapods

* Using Nuke
* Using Alamofire
* Using SwiftLint

Pods documentation

* Nuke: https://github.com/kean/Nuke
* Alamofire: https://github.com/Alamofire/Alamofire
* SwiftLint: https://github.com/realm/SwiftLint

About

WhatWeather - iOS Weather app built with Dependency Injection and MVC


Languages

Language:Swift 98.9%Language:Ruby 1.1%