/SwinjectSimpleExample

A simple example to use Swinject with unit tests

Primary LanguageSwiftMIT LicenseMIT

SwinjectSimpleExample

[OBSOLETED] This example app is obsoleted and no longer follow the latest Xcode/Swift/Swinject versions.


This is an example project to demonstrate dependency injection and Swinject in a simple weather app that lists current weather information at some locations.

Screenshot

Requirements

  • Xcode 8 or later with Swift 3.0.x
  • CocoaPods 1.1.0 or later

(Xcode 7 version with Swift 2.2 is here)

Setup

  1. Download the source code or clone the repository.
  2. Run pod install.
  3. Get a free API key from OpenWeatherMap.
  4. Open OpenWeatherMap.swift and fill apiKey = "" with your own API key.

Blog Posts

The following blog posts demonstrate step-by-step development of the project introducing dependency injection and Swinject.

License

MIT license. See the LICENSE file for details.