WeatherDemo is a simple iOS application that provides users with current weather information based on their location. The app utilizes SwiftUI for its user interface and integrates with the OpenWeatherMap API to fetch weather data.
- Display current weather information based on user's location
- Supports dark mode
- Shows loading indicator while fetching data
- Displays weather condition, temperature, wind speed, and humidity
- Provides a welcoming interface to prompt users to share their location
- SwiftUI: Used for building the user interface with a declarative syntax and reactive updates.
- OpenWeatherMap API: Integrated to fetch weather data based on latitude and longitude coordinates.
- CoreLocation: Utilized for accessing the user's location data.
- Clone the repository to your local machine.
- Open the project in Xcode.
- Build and run the project on a simulator or a physical device.
To get started with the development of WeatherDemo, follow these steps:
- Set up an account on OpenWeatherMap to obtain an API key.
- Integrate the OpenWeatherMap API into your project to fetch weather data.
- Use SwiftUI to design the user interface, incorporating features such as loading indicators and displaying weather information.
- Utilize CoreLocation to request and manage the user's location data.
- Implement error handling for scenarios such as failed API requests or location access denied.