This is a simple weather app. The app uses OpenWeather API to get weather data.
The app has the ability to search by locations. For this purpose, it uses MapKit. When the user taps on a search result, the app sends the name of the location to CoreLocation to get the coordinates. If it retrieves the coordinates successfully, it uses them for API request.
All favorite cities app saves in Documents Directory.
- Swift 5.6
- SwiftUI
- MapKit
- CoreLocation
- FileManager
- UserDefaults
- MVVM
- Weather data at user location
- Search locations by city
- Add cities to favorites
- Choice between measurement systems
- Full Russian and English language support
- Xcode 13 or later
- iOS 15 or later
Don't forget to specify API key in WeatherService.swift:
private let apiKey = "" // <- ADD API KEY HEREYou can get one on https://openweathermap.org/





