Skip to content

Real-time iOS Weather App built with Swift, SwiftUI, CoreLocation, and async/await (WWDC24). A clean and modular project fetching live weather data from OpenWeather API.

Notifications You must be signed in to change notification settings

jitendra-789/Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌦 iOS Weather App

An elegant, real-time weather app built entirely using Swift and SwiftUI, leveraging Apple's latest technologies like CoreLocation and async/await introduced in WWDC 2024.


📱 App Screenshots

📱 Screens

Welcome Screen Weather Screen

🖼️ WeatherView.swift

WeatherView

🖼️ WelcomeView.swift

WelcomeView

🧭 LocationManager.swift

LocationManager

🌤 WeatherManager.swift

WeatherManager

💡 Features

  • 🌍 Fetches real-time location using CoreLocation
  • 📡 Retrieves live weather data from OpenWeather API
  • ⚡ Built with async/await for clean, non-blocking network calls
  • 📲 Fully built using SwiftUI with a responsive and intuitive interface
  • 🎯 Uses a modular architecture for scalability and clarity

🔧 Technologies Used

Tool Purpose
Swift Core programming language
SwiftUI Declarative UI framework
CoreLocation Location permission and coordinates
Async/Await Asynchronous network calls
OpenWeather API Weather data
MVVM Architecture Clean separation of concerns

🧩 App Architecture

🧭 LocationManager.swift

Handles real-time location permissions and coordinates using the CoreLocation framework.

🌤 WeatherManager.swift

Fetches weather data using the OpenWeather API with Swift’s modern async/await. Parses JSON using Codable.

📲 ContentView.swift

Acts as the main entry point. Manages app state, shows loading or content views, and triggers weather fetch using .task {}.

🖼️ WeatherView.swift, WelcomeView.swift

SwiftUI views that:

  • Show weather info
  • Prompt user for location access
  • Handle fallback UI scenarios

About

Real-time iOS Weather App built with Swift, SwiftUI, CoreLocation, and async/await (WWDC24). A clean and modular project fetching live weather data from OpenWeather API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages