What problem does it solve?
Integrating WeatherKit into iOS apps requires correct entitlement setup, selective dataset queries, legal attribution, and handling region-limited features; this Skill consolidates best practices and code patterns to reliably fetch and present weather data without breaking App Review or exceeding API quotas.
Core Features & Use Cases
- Fetch datasets: Retrieve current conditions, hourly, daily, minute (where available), and weather alerts.
- Attribution compliance: Obtain and display Apple Weather attribution marks and legal links as required by policy.
- Selective querying & availability: Request only the datasets you need and check availability to avoid nil responses or runtime failures.
- Caching & performance: Actor-based caching patterns and staleness strategies to reduce quota usage and improve UX.
- SwiftUI integration: Patterns for managers, dashboard views, charts, and location handling for seamless UI presentation.
- Historical statistics: Guidance for daily and monthly statistics retrieval for analytics and reporting.
Quick Start
Use the weatherkit skill to fetch current, hourly, and daily forecasts plus Apple Weather attribution for a given CLLocation and display them in your SwiftUI view.