This app works with OpenWeatherMap API1 to get current weather in real-time.
- One main screen
- Current location button
- Search by city text field
- Search button
- Temperature label
- Temperature condition
- City label
- Color mode
- two background images for dark and light mode (the color mode is base on the phone's settings)
- MVC,
- for structuring and separating code files into models, views, and controllers.
- Delegate pattern,
- for sending data between files
- URLSession,
- for requesting/getting data from API
- Auto Layout,
- setting up the UI design for all screen sizes (from iPhone SE 2 to iPhone 13 Pro Max).
(Demonstration of the iPhone 11 in both dark and light mode.)
Footnotes
-
Please, note to use your own OpenWeatherMap API' API key in the WeatherManager.swift file of source code. โฉ