MyWeather is a SwiftUI-based weather application that provides current weather information based on the user's location. The app features a launching animation, a loading view with advanced animations, and an iOS 26-inspired Liquid Glass redesign.
Actual iOS Simulator recording using an Adelaide weather/forecast capture from OpenWeather, collected on 22 October 2026 at 12:42:48 UTC. The recording replays that capture; it is not a continuous live weather connection. It shows the current UI and card interactions, with source/capture time visible in-frame. See capture metadata and recording instructions.
- Current weather data (temperature, feels like, min/max, humidity, wind, pressure, visibility, cloudiness)
- 3-hour forecast observations displayed as a smooth line graph
- Location-based weather using CoreLocation
- Launch animation with smooth transitions
- Loading view with animated color cycling
- iOS 26 Liquid Glass redesign: translucent, adaptive materials with dynamic opacity on interaction
- Dark mode support with adaptive text colors
- Smooth drag‑up card to reveal map details
- Recoverable states: a failed weather request shows a retry action instead of a permanent spinner, and denied location permission explains the problem with a Settings shortcut
- iOS 16.0+ (designed for iOS 26 Liquid Glass effects)
- Xcode 15.0+
- Swift 5.5+
- Clone the repository
- Open the project in Xcode
- Build and run the project on your simulator or device.
- On launch, the app displays a launching animation.
- After the animation, the app requests location permissions.
- Once the location is obtained, the app fetches the current weather data.
- The main screen displays the temperature, wind speed, and humidity.
- Drag the “Weather now” card upward to reveal the map and more details; the card’s glass opacity increases as you drag.
- View the forecast line graph to see the temperature trend.
- LaunchView – Displays the launching animation and transitions to
ContentView. - ContentView – Manages the display of
LaunchViewand the main weather content. - WeatherRow – Displays individual weather information (temperature, wind speed, humidity).
- LocationManager – Handles location services and provides the user's current location.
- WeatherManager – Fetches weather data from the OpenWeatherMap API based on the user's location.
- LineGraph – Displays the hourly forecast using a smoothed line graph with Liquid Glass background.
- Extensions.swift – Contains
glassBackground,glassCard,elevatedGlassview modifiers and adaptive color helpers.
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenWeatherMap API for providing weather data.
- SwiftUI for the UI framework.
Hourly forecast geometry handles empty input, a single observation, constant values and nonfinite temperatures. A single observation and a flat series are centered vertically; invalid temperatures are omitted and an empty valid series shows an unavailable state. The loading screen's colour loop is scoped to its SwiftUI task and cancelled when the view leaves the hierarchy.
Run the geometry checks without an API key or network access:
swiftc MyWeather/ForecastGeometry.swift scripts/test-forecast.swift -o /tmp/test-forecast
/tmp/test-forecastCI also builds the iOS Simulator app without signing. These checks do not verify live weather responses, device permissions or rendered UI appearance.
