Skip to content

sturdytea/WeatherApp

Repository files navigation

Weather App 🌦️

wakatime

It's a simple and minimalist weather app that provides current weather information. The app uses the OpenWeatherMap API to fetch real-time and hourly forecast weather data, air quality index, and other useful details.

Technologies Used

  • Stack: SwiftUI, Combine, CoreLocation
  • Architecture: MVVM
  • Patterns: DI
  • Third-Party APIs: OpenWeatherMap API

Installation

  1. Clone the repo:
   git clone https://github.com/github_username/repo_name.git
  1. Open the project in Xcode:
cd AstanaWeatherApp
open AstanaWeatherApp.xcodeproj

Configuration

To use the app, you need an API key.

  1. Sign in and get an free API key at https://openweathermap.org

  2. Edit WeatherManager.swift, replace constant apiKey with your API key:

// Before:
private let apiKey = Bundle.main.infoDictionary?["API_KEY"] as? String ?? "API Key"

// After
private let apiKey = "your_api_key"

Screenshots

There will be more later

Simulator Screenshot - iPhone 16 Pro - 2024-11-04 at 16 17 00

Future Enhancements

  • Replace weather icon with 3D Images.: UI looks too colorless.
  • Add City Search.: Allow user to search for weather in other cities.
  • Build Widget for Home Screen.: Users should know current weather without opening the app.

Releases

No releases published

Packages

 
 
 

Contributors

Languages