Skip to content

SwiftWeather is an iOS weather app developed in Swift 2. The app has been actively upgrading to adopt the latest features of iOS and Swift language.

License

Notifications You must be signed in to change notification settings

doedje/SwiftWeather

 
 

Repository files navigation

Swift Weather

BuddyBuild

SwiftWeather is an iOS weather app developed in Swift 2. The app has been actively upgrading to adopt the latest features of iOS and Swift language.

Notices

The current version is working with Xcode Version 7. If you are using different Xcode version, please check out the previous versions.

Version 3

This version has been upgraded to support iOS 9 only using Swift 2.

There are two major version for the app released before.

  • V1.0 - Support iOS 7+ using CocoaPods and AFNetworking. README.v1.md and Release V1 - Using Cocoapods and AFNetworking
  • V2.0 - Support iOS 8+ using Carthage, Alamofire and SwiftyJSON. README.v2.md and Release V2.0
  • V2.1 - Support iOS 8+ using Alamofire and SwiftyJSON. This version has removed Carthage because some developers don't have a paid Apple iOS developer account and they have issues to build Carthage packages.

Screenshots

Features

  • Swift Programming Language - fully upgraded to version 2
  • Design driven development - Sketch design file

Sketch design

  • Custom UIView

Custom UIView

  • @IBDesignable and @IBInspectable - Reusable UI components

IBDesignable and IBInspectable

  • UIStackView

UIStackView

  • Size Classes - Support different devices with adpative layout

Size Classes

  • MVVM - Reactively update ViewController UI from ViewModel

  • Protocal oriented programming - Still learning though and finding the best practise of that.

  • Value based programming - Use imutable value anywhere.

  • Icon fonts - Use Weather Icons

  • SwiftyJSON

  • Core Location

TODO

  • App indexing like CoreSpotlight and NSUserActivity
  • Unit Tests
  • UI Tests
  • Animations

How to build

  1. Clone the repository
$ git clone https://github.com/JakeLin/SwiftWeather.git
$ cd SwiftWeather
  1. Install pods
$ pod install
  1. Open the workspace in Xcode
$ open "SwiftWeather.xcworkspace"
  1. Sign up on openweathermap.org/appid to get an appid, then replace your one in OpenWeatherMapService.swift
private let appId = "your appid from openweathermap.org/appid"
  1. Compile and run the app in your simulator

Requirements

  • Xcode 7
  • iOS 9

About

SwiftWeather is an iOS weather app developed in Swift 2. The app has been actively upgrading to adopt the latest features of iOS and Swift language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.3%
  • Ruby 0.7%