Comprehensive reference for Apple's WeatherKit that covers the entire API surface: current conditions, hourly and daily forecasts, weather alerts, and minute-by-minute precipitation where available. The selective query examples are especially useful since they show how to fetch only what you need instead of pulling everything. The attribution section is critical because Apple requires you to display their weather mark and legal links, and the skill includes ready-to-use SwiftUI code for both light and dark modes. Also covers availability checking, which matters because datasets like minute forecasts only work in certain regions. Good for anyone building weather features in iOS apps who needs to understand the entitlement setup and API patterns.

skills.sh installs
3.6K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Data Science & ML, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1anthropics avatarearnings-analysisanthropics/financial-servicesCreate professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage. Fa3.6Kskills.sh installs
2tinyfish-io avataruse-tinyfishtinyfish-io/tinyfish-cookbookUse TinyFish for web search, fetching URLs, reading pages, current information, source-backed answers, research, docs, pricing/product pages, extraction, scrapi3.5Kskills.sh installs
3tradermonty avataredge-candidate-agenttradermonty/claude-trading-skillsGenerate and prioritize US equity long-side edge research tickets from EOD observations, then export pipeline-ready candidate specs for trade-strategy-pipeline 3.5Kskills.sh installs
4anthropics avatarcompetitive-briefanthropics/knowledge-work-pluginsResearch competitors and generate a positioning and messaging comparison with content gaps, opportunities, and threats. Use when building sales battlecards, whe3.5Kskills.sh installs
5agents365-ai avatarpaper-fetchagents365-ai/365-skillsUse whenever the user wants to obtain, download, or fetch a paper's PDF — given a DOI, an arXiv id, a paper title, a citation, or a list of DOIs. Trigger on phr3.5Kskills.sh installs
6agents365-ai avatarsemanticscholar-skillagents365-ai/365-skillsUse when searching academic papers, looking up citations, finding authors, or getting paper recommendations using the Semantic Scholar API. Triggers on queries 3.5Kskills.sh installs