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
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
This app is not available on the App Store.
- A valid API key from Dark Sky
- A Mac running macOS Catalina (beta)
- Xcode 11 (beta)
- Clone or download the project to your local machine
- Open the project in Xcode
- Replace
YOURAPIKEY
with your valid Dark Sky API key inDarkSkyAPIClient.swift
class DarkSkyAPIClient {
fileprivate let darkSkyApiKey = "YOURAPIKEY"
- Run the simulator
The following resources were used in the development of this project. All custom code is my own.
- Build a Weather App
- SwiftUI Fetching JSON and Image Data with BindableObject
- Graphics: Meteocons by Alessio Atzeni
Interested in learning more about iOS Development? Sign up today!