A SwiftUI Weather App that fetches and displays the weather for a particular city using OpenWeatherMap API. The app supports light and dark mode, with smooth animations when toggling between modes.
- Uses OpenWeatherMap API to retrieve real-time weather data.
- Simple API call to fetch weather details based on the entered city name.
- Light & Dark Mode Support → Users can switch between themes.
- Smooth Animations → The view transitions seamlessly when toggling modes.
- Minimalistic & Clean Design for an enhanced user experience.
- Animated Background Changes based on the selected theme.
Follow these steps to obtain and integrate your API Key:
- Open OpenWeatherMap.
- Create an account and navigate to the API section.
- Get your personal API key.
- Replace
apiKey
in the WeatherNetwork.swift file with your personal API key.
- SwiftUI for UI development
- OpenWeatherMap API for fetching weather data
- Animations & Transitions for smooth mode switching
- Clone the repository:
git clone https://github.com/parth49patel/Weather.git
- Open the project in Xcode.
- Replace the apiKey in WeatherNetwork.swift with your API key.
- Run the app on a simulator or a real device.