Skip to content

A weather app that uses the Dark Sky API built using SwiftUI! Get the current weather for a particular location and check out the 5-day forecast!

Notifications You must be signed in to change notification settings

ChaseChoi/Weather-SwiftUI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather-SwiftUI

Overview

Weather-SwiftUI is a weather app that uses the Dark Sky API built using SwiftUI! Get the current weather for a particular location and check out the 5-day forecast! The app incorporates:

  • SwiftUI
  • Stacks
  • Images and Text
  • Gradients
  • Parsing JSON using Codable
  • Error Handling
  • MVVM

Custom Features

Additional features were added to the original functionality of the app, including:

  • Custom, dynamic UI using SwiftUI
  • Expanded CurrentWeather model including apparent temperature and wind speed
  • Included 5-day forecast

Getting Started

This app is not available on the App Store.

Prerequisites

  • A valid API key from Dark Sky
  • A Mac running macOS Catalina (beta)
  • Xcode 11 (beta)

Installation

  1. Clone or download the project to your local machine
  2. Open the project in Xcode
  3. Replace YOURAPIKEY with your valid Dark Sky API key in DarkSkyAPIClient.swift
class DarkSkyAPIClient {
    fileprivate let darkSkyApiKey = "YOURAPIKEY"
  1. Run the simulator

Acknowledgements

The following resources were used in the development of this project. All custom code is my own.

Interested in learning more about iOS Development? Sign up today!

About

A weather app that uses the Dark Sky API built using SwiftUI! Get the current weather for a particular location and check out the 5-day forecast!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%