New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Apple Weather data access package covering forecasts, alerts, historical context, and required attribution for iOS apps.

skills.sh installs
3.7K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers current, minute, hourly, and daily forecasts, weather alerts, iOS 18+ change and historical comparison queries, and summaries and statistics
  • Includes WeatherService setup, selective WeatherQuery fetches, a query-type reference table, and an attribution section
  • Notes date-range rules: daily and hourly ranges are inclusive-start and exclusive-end, with forecasts limited to 10 days ahead
  • Designed for iOS developers integrating weather data, showing alerts, caching responses, or reviewing WeatherKit query limits

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill weatherkit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WeatherKit

Fetch current conditions, hourly and daily forecasts, weather alerts, and historical statistics using WeatherService. Display required Apple Weather attribution.

Contents

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

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.

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Mobile Apps, Backend & APIs
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Weatherkit

More Mobile Apps