A beautiful, modern iOS weather application built with SwiftUI that provides real-time weather information based on your current location.
- 📍 Location-Based Weather: Automatically detects your current coordinates and fetches weather data
- 🌡️ Comprehensive Weather Data:
- Current temperature and "feels like" temperature
- Minimum and maximum daily temperatures
- Humidity levels
- Wind speed and direction
- Weather conditions (sunny, rainy, cloudy, etc.)
- 🎨 Beautiful UI: Modern Tokyo Night theme with smooth gradients and elegant design
- 🌈 Dynamic Icons: Weather-specific SF Symbols with contextual colors
- 📱 Native iOS Experience: Built entirely with SwiftUI for optimal performance
- Xcode 12.0 or later
- iOS 14.0 or later
- OpenWeatherMap API key
- SwiftUI: Modern declarative UI framework
- Core Location: GPS coordinate detection
- URLSession: HTTP networking for API calls
- Combine: Reactive programming for data flow
- OpenWeatherMap API: Weather data provider
The app integrates with the OpenWeatherMap Current Weather Data API:
- Endpoint:
https://api.openweathermap.org/data/2.5/weather - Parameters:
lat: Latitude coordinatelon: Longitude coordinateappid: Your API keyunits: Metric system for temperature
{
"weather": [{"main": "Clear", "description": "clear sky"}],
"main": {
"temp": 22.5,
"feels_like": 21.8,
"temp_min": 18.2,
"temp_max": 26.1,
"humidity": 45
},
"wind": {"speed": 3.2, "deg": 180},
"name": "Your City"
}The app features a custom Tokyo Night color scheme:
- Background: Deep navy (
#16161e) - Surface: Dark blue-gray (
#24283b) - Primary: Tokyo blue (
#7aa2f7) - Accent: Purple (
#ab4ded) - Text: Light blue-white (
#c0caf5)
The app requires the following permissions:
- Location Services: To determine your current coordinates for weather data
- OpenWeatherMap for providing the weather API
- Tokyo Night for the color scheme inspiration