weatherkit

Fetch weather observations, forecasts, and alerts with Apple attribution for iOS apps.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill weatherkit-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weatherkit
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/weatherkit
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill weatherkit-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Fetching and presenting weather data reliably is hard because you must query the right datasets, handle availability differences by region, and show the required Apple attribution.

Core Features & Use Cases

  • Current conditions: Retrieve temperature, condition, symbol name, humidity, wind, and UV index for a user location.
  • Hourly and daily forecasts: Display next-hour and multi-day outlooks using WeatherQuery datasets (.hourly, .daily, with optional custom ranges).
  • Weather alerts and availability: Show active alerts when supported and avoid unsupported minute forecasts by checking WeatherAvailability.
  • Attribution compliance: Fetch WeatherAttribution and display the correct legal mark URLs for light/dark modes.

Quick Start

Use the weatherkit skill to fetch current conditions, an hourly forecast, daily forecast, and attribution for a given CLLocation and then render them in SwiftUI.

Frequently Asked Questions about weatherkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch current weather conditions and forecasts for a specific location in iOS?

To fetch current weather conditions and forecasts in iOS, use WeatherService with WeatherQuery types for a given CLLocation, requesting datasets like hourly and daily forecasts. Handle nil values gracefully for unavailable data.

How do I display required Apple Weather attribution in my Swift app?

Displaying required Apple Weather attribution in a Swift app involves fetching WeatherAttribution to obtain the correct legal mark URLs. You must surface these URLs in your interface to comply with WeatherKit requirements.

Can I request minute-by-minute weather forecasts for any geographic location?

Minute-by-minute weather forecasts are not available for all geographic locations. You must check WeatherAvailability before requesting restricted datasets to avoid unsupported minute forecasts and handle missing data gracefully.

How do I check weather alert availability before requesting datasets?

Check weather alert availability before requesting datasets by verifying WeatherAvailability for the user location. This ensures you only request supported alert data and avoid unsupported minute forecasts or restricted regional datasets.

What is the best way to handle unavailable weather data in Swift?

The best way to handle unavailable weather data in Swift is through graceful nil handling. Check WeatherAvailability before requesting restricted datasets, ensuring your iOS app manages missing minute forecasts or regional alerts safely.