weatherkit

Fetch current, hourly, and daily weather forecasts and alerts via Apple WeatherKit.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill weatherkit-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weatherkit
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/weatherkit
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill weatherkit-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides access to comprehensive weather data, including current conditions, hourly and daily forecasts, and weather alerts, enabling developers to integrate accurate and up-to-date weather information into their iOS applications.

Core Features & Use Cases

  • Fetch Weather Data: Retrieve current weather, hourly forecasts, and daily forecasts for a given location.
  • Handle Weather Alerts: Access and display active weather alerts for a region.
  • Display Attribution: Ensure proper Apple Weather attribution is shown as required by the WeatherKit terms of service.
  • Use Case: Display the current temperature, a 3-day forecast, and any active severe weather alerts for the user's current location within a travel app.

Quick Start

Use the weatherkit skill to fetch the current weather for the location provided.

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 and hourly forecasts in an iOS app?

You can fetch current weather, hourly forecasts, and daily forecasts in iOS by integrating Apple's WeatherKit framework to retrieve real-time meteorological data for a specified location.

Can I retrieve severe weather alerts using WeatherKit in Swift?

Yes, WeatherKit allows you to access and display active severe weather alerts for a specific region directly within your Swift iOS application.

Do I need to display attribution when using Apple Weather data?

Yes, displaying proper Apple Weather attribution is required by the WeatherKit terms of service when you surface current conditions or forecasts in your app.

What iOS and Swift versions are required to integrate WeatherKit?

Integrating WeatherKit requires Swift 6.2 and iOS 26 or later to properly support fetching weather statistics and forecasts.

Can I query historical weather statistics using WeatherKit?

Yes, you can query historical weather statistics in your iOS app using the WeatherKit framework to analyze past meteorological conditions for a given location.