SPWeather is a weather app for iOS that provides weather information for different cities around the world. It is built using Swift programming language and MVVM architecture.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
SPWeather uses MVVM (Model-View-ViewModel) architecture pattern. The project is organized into the following layers:
ViewModel: The intermediary layer between the model and the view. It fetches data from the API, processes it and exposes it to the view.
ViewController
WeatherData
, SearchData
, .. WeatherDetailScreen
SPWeather uses the OpenWeatherMap API to retrieve weather data for different cities. To use the app,need to sign up for an API key from the OpenWeatherMap website and replace the apiKey constant in Configs.swift
.
WeatherAPIService
WeatherAPIService
, CoreDataManager
,