Skip to content

A simple Weather app built using SwiftUI that fetches weather of a particular city.

Notifications You must be signed in to change notification settings

parth49patel/Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌦️ Weather App

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.

🚀 Features

☁️ Fetching Weather Data

  • Uses OpenWeatherMap API to retrieve real-time weather data.
  • Simple API call to fetch weather details based on the entered city name.

🎨 Dynamic UI with Light/Dark Mode

  • Light & Dark Mode Support → Users can switch between themes.
  • Smooth Animations → The view transitions seamlessly when toggling modes.

🛠️ SwiftUI-Based UI

  • Minimalistic & Clean Design for an enhanced user experience.
  • Animated Background Changes based on the selected theme.

🔑 Getting the API Key

Follow these steps to obtain and integrate your API Key:

  1. Open OpenWeatherMap.
  2. Create an account and navigate to the API section.
  3. Get your personal API key.
  4. Replace apiKey in the WeatherNetwork.swift file with your personal API key.

🛠️ Technologies Used

  • SwiftUI for UI development
  • OpenWeatherMap API for fetching weather data
  • Animations & Transitions for smooth mode switching

📷 Screenshots

Light Mode Dark Mode

🔥 How to Run the Project

  1. Clone the repository:
git clone https://github.com/parth49patel/Weather.git
  1. Open the project in Xcode.
  2. Replace the apiKey in WeatherNetwork.swift with your API key.
  3. Run the app on a simulator or a real device.

About

A simple Weather app built using SwiftUI that fetches weather of a particular city.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages