weatherkit
Fetch WeatherKit current, minute, hourly, and daily forecasts; weather alerts; iOS 18+ changes, historical comparisons, summaries, and statistics; and required Apple Weather attribution. Use when integrating weather data, showing forecasts or alerts, caching WeatherKit responses, displaying attribution, or reviewing WeatherKit query limits in iOS apps.
npx skills add dpearson2699/swift-ios-skills --skill weatherkit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# WeatherKit Fetch current conditions, hourly and daily forecasts, weather alerts, and historical statistics using `WeatherService`. Display required Apple Weather attribution. ## Contents - [Setup](#setup) - [Fetching Current Weather](#fetching-current-weather) - [Forecasts](#forecasts) - [Weather Alerts](#weather-alerts) - [Selective Queries](#selective-queries) - [Context Queries](#context-queries) - [Attribution](#attribution) - [Availability](#availability) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup ### Project Configuration 1. Enable the **WeatherKit** capability in Xcode (adds the entitlement) 2. Enable WeatherKit for your App ID in the Apple Developer portal 3. Add `NSLocationWhenInUseUsageDescription` to Info.plist if using device location 4. WeatherKit requires an active Apple Developer Program membership ### Import ```swift import WeatherKit import CoreLocation ``` ### Creating the Service Use the shared singleton or create an instance. `WeatherService` conforms to `Sendable`; keep app cache and UI state isolated separately. ```swift let weatherService = WeatherService.shared // or let weatherService
- Contents
- Setup
- Project Configuration
- Import
- Creating the Service
- Fetching Current Weather
- Forecasts
- Hourly Forecast
- Daily Forecast
- Custom Date Range
- Weather Alerts
- Selective Queries
- Single Dataset
- Multiple Datasets
What does the weatherkit skill do?
Fetch WeatherKit current, minute, hourly, and daily forecasts; weather alerts; iOS 18+ changes, historical comparisons, summaries, and statistics; and required Apple Weather attribution. Use when integrating weather data, showing forecasts or alerts, caching WeatherKit responses, displaying attribution, or reviewing WeatherKit query limits in iOS apps.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill weatherkit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.