This application is a SwiftUI implementation of the iOS Weather app. All the background images of the iOS Weather app are not present at the moment, this could be a future improvement of this project. The app runs on iOS, macOS and iPadOS. The project will evolve with the different betas of Xcode and SwiftUI.
The project fits currently the MVVM pattern. As the project follows the different SwiftUI tutorials from Apple, ViewModels
are called Datas
.
WeatherSwiftUI uses the OpenWeather API to fetch weather datas. It uses a free API key thereby it only has a 3 hours and 5 days forecast.
WeatherSwiftUI tries to be in pure SwiftUI but I had to use some UIKit (UIViewControllerRepresentable) for the PageViewController.