MVVM with swiftUI

When learning SwiftUI, one of the first architectural patterns you'll encounter is MVVM (Model-View-ViewModel). In this tutorial, we'll build a simple weather application that consumes the OpenWeather API while applying MVVM, dependency injection, and protocol-oriented programming. By the end, you'll understand not only how to structure the project, but also why each layer exists.

This is the link for the OpenWeather API https://openweathermap.org/api.

What you'll learn

By the end of this tutorial you'll know how to: