Skip to content

A simple iOS app built with SwiftUI that allows users to compare the weather of two cities side by side. It fetches real-time weather data from the OpenWeatherMap API and displays the temperature, weather condition, and icons for selected cities.

License

Notifications You must be signed in to change notification settings

aaronrjmanj/Weather-Compare-App-iOS

Repository files navigation

๐ŸŒฆ๏ธ WeatherCompare - iOS App

A simple iOS app built with SwiftUI that allows users to compare the weather of two cities side by side. It fetches real-time weather data from the OpenWeatherMap API and displays the temperature, weather condition, and icons for selected cities.


๐Ÿ“ธ Screenshot

WeatherCompare App Screenshot


๐Ÿš€ Features

โœ… Select two cities from a list
โœ… Fetch real-time weather data using OpenWeatherMap API
โœ… Display temperature, weather description, and icons
โœ… SwiftUI-based responsive design
โœ… Uses URLSession for API requests


๐Ÿ› ๏ธ Technologies Used

  • Swift 5 & SwiftUI
  • Xcode
  • OpenWeatherMap API
  • URLSession for Networking
  • JSON Parsing

๐Ÿ“Œ Installation & Setup

๐Ÿ”น Prerequisites

  • Install Xcode (latest version) from the Mac App Store
  • Get an API key from OpenWeatherMap

๐Ÿ”น Steps to Run Locally

  1. Clone the repository:
    git clone https://github.com/YOUR_USERNAME/WeatherCompare.git
    cd WeatherCompare
  2. Open WeatherCompare.xcodeproj in Xcode.
  3. Replace "YOUR_API_KEY" in ContentView.swift with your actual API key.
  4. Select an iPhone simulator and Run the project (Cmd + R).

About

A simple iOS app built with SwiftUI that allows users to compare the weather of two cities side by side. It fetches real-time weather data from the OpenWeatherMap API and displays the temperature, weather condition, and icons for selected cities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages