{"id":"0240db32-fc06-4e66-b94d-46104bd845ab","shortId":"4mhSzp","kind":"skill","title":"weatherkit","tagline":"Fetch current, hourly, and daily weather forecasts and display required attribution using WeatherKit. Use when integrating weather data, showing forecasts, handling weather alerts, displaying Apple Weather attribution, or querying historical weather statistics in iOS apps.","description":"# WeatherKit\n\nFetch current conditions, hourly and daily forecasts, weather alerts, and\nhistorical statistics using `WeatherService`. Display required Apple Weather\nattribution. Targets Swift 6.3 / iOS 26+.\n\n## Contents\n\n- [Setup](#setup)\n- [Fetching Current Weather](#fetching-current-weather)\n- [Forecasts](#forecasts)\n- [Weather Alerts](#weather-alerts)\n- [Selective Queries](#selective-queries)\n- [Attribution](#attribution)\n- [Availability](#availability)\n- [Common Mistakes](#common-mistakes)\n- [Review Checklist](#review-checklist)\n- [References](#references)\n\n## Setup\n\n### Project Configuration\n\n1. Enable the **WeatherKit** capability in Xcode (adds the entitlement)\n2. Enable WeatherKit for your App ID in the Apple Developer portal\n3. Add `NSLocationWhenInUseUsageDescription` to Info.plist if using device location\n4. WeatherKit requires an active Apple Developer Program membership\n\n### Import\n\n```swift\nimport WeatherKit\nimport CoreLocation\n```\n\n### Creating the Service\n\nUse the shared singleton or create an instance. The service is `Sendable` and\nthread-safe.\n\n```swift\nlet weatherService = WeatherService.shared\n// or\nlet weatherService = WeatherService()\n```\n\n## Fetching Current Weather\n\nFetch current conditions for a location. Returns a `Weather` object with all\navailable datasets.\n\n```swift\nfunc fetchCurrentWeather(for location: CLLocation) async throws -> CurrentWeather {\n    let weather = try await weatherService.weather(for: location)\n    return weather.currentWeather\n}\n\n// Using the result\nfunc displayCurrent(_ current: CurrentWeather) {\n    let temp = current.temperature  // Measurement<UnitTemperature>\n    let condition = current.condition  // WeatherCondition enum\n    let symbol = current.symbolName  // SF Symbol name\n    let humidity = current.humidity  // Double (0-1)\n    let wind = current.wind  // Wind (speed, direction, gust)\n    let uvIndex = current.uvIndex  // UVIndex\n\n    print(\"\\(condition): \\(temp.formatted())\")\n}\n```\n\n## Forecasts\n\n### Hourly Forecast\n\nReturns 25 contiguous hours starting from the current hour by default.\n\n```swift\nfunc fetchHourlyForecast(for location: CLLocation) async throws -> Forecast<HourWeather> {\n    let weather = try await weatherService.weather(for: location)\n    return weather.hourlyForecast\n}\n\n// Iterate hours\nfor hour in hourlyForecast {\n    print(\"\\(hour.date): \\(hour.temperature.formatted()), \\(hour.condition)\")\n}\n```\n\n### Daily Forecast\n\nReturns 10 contiguous days starting from the current day by default.\n\n```swift\nfunc fetchDailyForecast(for location: CLLocation) async throws -> Forecast<DayWeather> {\n    let weather = try await weatherService.weather(for: location)\n    return weather.dailyForecast\n}\n\n// Iterate days\nfor day in dailyForecast {\n    print(\"\\(day.date): \\(day.lowTemperature.formatted()) - \\(day.highTemperature.formatted())\")\n    print(\"  Condition: \\(day.condition), Precipitation: \\(day.precipitationChance)\")\n}\n```\n\n### Custom Date Range\n\nRequest forecasts for specific date ranges using `WeatherQuery`.\n\n```swift\nfunc fetchExtendedForecast(for location: CLLocation) async throws -> Forecast<DayWeather> {\n    let startDate = Date.now\n    let endDate = Calendar.current.date(byAdding: .day, value: 10, to: startDate)!\n\n    let forecast = try await weatherService.weather(\n        for: location,\n        including: .daily(startDate: startDate, endDate: endDate)\n    )\n    return forecast\n}\n```\n\n## Weather Alerts\n\nFetch active weather alerts for a location. Alerts include severity, summary,\nand affected regions.\n\n```swift\nfunc fetchAlerts(for location: CLLocation) async throws -> [WeatherAlert]? {\n    let weather = try await weatherService.weather(for: location)\n    return weather.weatherAlerts\n}\n\n// Process alerts\nif let alerts = weatherAlerts {\n    for alert in alerts {\n        print(\"Alert: \\(alert.summary)\")\n        print(\"Severity: \\(alert.severity)\")\n        print(\"Region: \\(alert.region)\")\n        if let detailsURL = alert.detailsURL {\n            // Link to full alert details\n        }\n    }\n}\n```\n\n## Selective Queries\n\nFetch only the datasets you need to minimize API usage and response size. Each\n`WeatherQuery` type maps to one dataset.\n\n### Single Dataset\n\n```swift\nlet current = try await weatherService.weather(\n    for: location,\n    including: .current\n)\n// current is CurrentWeather\n```\n\n### Multiple Datasets\n\n```swift\nlet (current, hourly, daily) = try await weatherService.weather(\n    for: location,\n    including: .current, .hourly, .daily\n)\n// current: CurrentWeather, hourly: Forecast<HourWeather>, daily: Forecast<DayWeather>\n```\n\n### Minute Forecast\n\nAvailable in limited regions. Returns precipitation forecasts at minute\ngranularity for the next hour.\n\n```swift\nlet minuteForecast = try await weatherService.weather(\n    for: location,\n    including: .minute\n)\n// minuteForecast: Forecast<MinuteWeather>?  (nil if unavailable)\n```\n\n### Available Query Types\n\n| Query | Return Type | Description |\n|---|---|---|\n| `.current` | `CurrentWeather` | Current observed conditions |\n| `.hourly` | `Forecast<HourWeather>` | 25 hours from current hour |\n| `.daily` | `Forecast<DayWeather>` | 10 days from today |\n| `.minute` | `Forecast<MinuteWeather>?` | Next-hour precipitation (limited regions) |\n| `.alerts` | `[WeatherAlert]?` | Active weather alerts |\n| `.availability` | `WeatherAvailability` | Dataset availability for location |\n\n## Attribution\n\nApple requires apps using WeatherKit to display attribution. This is a\nlegal requirement.\n\n### Fetching Attribution\n\n```swift\nfunc fetchAttribution() async throws -> WeatherAttribution {\n    return try await weatherService.attribution\n}\n```\n\n### Displaying Attribution in SwiftUI\n\n```swift\nimport SwiftUI\nimport WeatherKit\n\nstruct WeatherAttributionView: View {\n    let attribution: WeatherAttribution\n    @Environment(\\.colorScheme) private var colorScheme\n\n    var body: some View {\n        VStack {\n            // Display the Apple Weather mark\n            AsyncImage(url: markURL) { image in\n                image\n                    .resizable()\n                    .scaledToFit()\n                    .frame(height: 20)\n            } placeholder: {\n                EmptyView()\n            }\n\n            // Link to the legal attribution page\n            Link(\"Weather data sources\", destination: attribution.legalPageURL)\n                .font(.caption2)\n                .foregroundStyle(.secondary)\n        }\n    }\n\n    private var markURL: URL {\n        colorScheme == .dark\n            ? attribution.combinedMarkDarkURL\n            : attribution.combinedMarkLightURL\n    }\n}\n```\n\n### Attribution Properties\n\n| Property | Use |\n|---|---|\n| `combinedMarkLightURL` | Apple Weather mark for light backgrounds |\n| `combinedMarkDarkURL` | Apple Weather mark for dark backgrounds |\n| `squareMarkURL` | Square Apple Weather logo |\n| `legalPageURL` | URL to the legal attribution web page |\n| `legalAttributionText` | Text alternative when a web view is not feasible |\n| `serviceName` | Weather data provider name |\n\n## Availability\n\nCheck which weather datasets are available for a given location. Not all datasets\nare available in all countries.\n\n```swift\nfunc checkAvailability(for location: CLLocation) async throws {\n    let availability = try await weatherService.weather(\n        for: location,\n        including: .availability\n    )\n\n    // Check specific dataset availability\n    if availability.alertAvailability == .available {\n        // Safe to fetch alerts\n    }\n\n    if availability.minuteAvailability == .available {\n        // Minute forecast available for this region\n    }\n}\n```\n\n## Common Mistakes\n\n### DON'T: Ship without Apple Weather attribution\n\nOmitting attribution violates the WeatherKit terms of service and risks App Review\nrejection.\n\n```swift\n// WRONG: Show weather data without attribution\nVStack {\n    Text(\"72F, Sunny\")\n}\n\n// CORRECT: Always include attribution\nVStack {\n    Text(\"72F, Sunny\")\n    WeatherAttributionView(attribution: attribution)\n}\n```\n\n### DON'T: Fetch all datasets when you only need current conditions\n\nEach dataset query counts against your API quota. Fetch only what you display.\n\n```swift\n// WRONG: Fetches everything\nlet weather = try await weatherService.weather(for: location)\nlet temp = weather.currentWeather.temperature\n\n// CORRECT: Fetch only current conditions\nlet current = try await weatherService.weather(\n    for: location,\n    including: .current\n)\nlet temp = current.temperature\n```\n\n### DON'T: Ignore minute forecast unavailability\n\nMinute forecasts return `nil` in unsupported regions. Force-unwrapping crashes.\n\n```swift\n// WRONG: Force-unwrap minute forecast\nlet minutes = try await weatherService.weather(for: location, including: .minute)\nfor m in minutes! { ... } // Crash in unsupported regions\n\n// CORRECT: Handle nil\nif let minutes = try await weatherService.weather(for: location, including: .minute) {\n    for m in minutes { ... }\n} else {\n    // Minute forecast not available for this region\n}\n```\n\n### DON'T: Forget the WeatherKit entitlement\n\nWithout the capability enabled, `WeatherService` calls throw at runtime.\n\n```swift\n// WRONG: No WeatherKit capability configured\nlet weather = try await weatherService.weather(for: location) // Throws\n\n// CORRECT: Enable WeatherKit in Xcode Signing & Capabilities\n// and in the Apple Developer portal for your App ID\n```\n\n### DON'T: Make repeated requests without caching\n\nWeather data updates every few minutes, not every second. Cache responses\nto stay within API quotas and improve performance.\n\n```swift\n// WRONG: Fetch on every view appearance\n.task {\n    let weather = try? await fetchWeather()\n}\n\n// CORRECT: Cache with a staleness interval\nactor WeatherCache {\n    private var cached: CurrentWeather?\n    private var lastFetch: Date?\n\n    func current(for location: CLLocation) async throws -> CurrentWeather {\n        if let cached, let lastFetch,\n           Date.now.timeIntervalSince(lastFetch) < 600 {\n            return cached\n        }\n        let fresh = try await WeatherService.shared.weather(\n            for: location, including: .current\n        )\n        cached = fresh\n        lastFetch = .now\n        return fresh\n    }\n}\n```\n\n## Review Checklist\n\n- [ ] WeatherKit capability enabled in Xcode and Apple Developer portal\n- [ ] Active Apple Developer Program membership (required for WeatherKit)\n- [ ] Apple Weather attribution displayed wherever weather data appears\n- [ ] Attribution mark uses correct color scheme variant (light/dark)\n- [ ] Legal attribution page linked or `legalAttributionText` displayed\n- [ ] Only needed `WeatherQuery` datasets fetched (not full `weather(for:)` when unnecessary)\n- [ ] Minute forecast handled as optional (nil in unsupported regions)\n- [ ] Weather alerts checked for nil before iteration\n- [ ] Responses cached with a reasonable staleness interval (5-15 minutes)\n- [ ] `WeatherAvailability` checked before fetching region-limited datasets\n- [ ] Location permission requested before passing `CLLocation` to service\n- [ ] Temperature and measurements formatted with `Measurement.formatted()` for locale\n\n## References\n\n- Extended patterns (SwiftUI dashboard, charts integration, historical statistics): [references/weatherkit-patterns.md](references/weatherkit-patterns.md)\n- [WeatherKit framework](https://sosumi.ai/documentation/weatherkit)\n- [WeatherService](https://sosumi.ai/documentation/weatherkit/weatherservice)\n- [WeatherAttribution](https://sosumi.ai/documentation/weatherkit/weatherattribution)\n- [WeatherQuery](https://sosumi.ai/documentation/weatherkit/weatherquery)\n- [CurrentWeather](https://sosumi.ai/documentation/weatherkit/currentweather)\n- [Forecast](https://sosumi.ai/documentation/weatherkit/forecast)\n- [HourWeather](https://sosumi.ai/documentation/weatherkit/hourweather)\n- [DayWeather](https://sosumi.ai/documentation/weatherkit/dayweather)\n- [WeatherAlert](https://sosumi.ai/documentation/weatherkit/weatheralert)\n- [WeatherAvailability](https://sosumi.ai/documentation/weatherkit/weatheravailability)\n- [Fetching weather forecasts with WeatherKit](https://sosumi.ai/documentation/weatherkit/fetching_weather_forecasts_with_weatherkit)","tags":["weatherkit","swift","ios","skills","dpearson2699","accessibility","agent-skills","ai-coding","apple","claude-code","codex-skills","cursor-skills"],"capabilities":["skill","source-dpearson2699","skill-weatherkit","topic-accessibility","topic-agent-skills","topic-ai-coding","topic-apple","topic-claude-code","topic-codex-skills","topic-cursor-skills","topic-ios","topic-ios-development","topic-liquid-glass","topic-localization","topic-mapkit"],"categories":["swift-ios-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/dpearson2699/swift-ios-skills/weatherkit","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add dpearson2699/swift-ios-skills","source_repo":"https://github.com/dpearson2699/swift-ios-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 599 github stars · SKILL.md body (12,157 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T18:53:46.547Z","embedding":null,"createdAt":"2026-04-18T20:34:34.584Z","updatedAt":"2026-05-18T18:53:46.547Z","lastSeenAt":"2026-05-18T18:53:46.547Z","tsv":"'-1':238 '-15':1155 '/documentation/weatherkit)':1196 '/documentation/weatherkit/currentweather)':1212 '/documentation/weatherkit/dayweather)':1224 '/documentation/weatherkit/fetching_weather_forecasts_with_weatherkit)':1240 '/documentation/weatherkit/forecast)':1216 '/documentation/weatherkit/hourweather)':1220 '/documentation/weatherkit/weatheralert)':1228 '/documentation/weatherkit/weatherattribution)':1204 '/documentation/weatherkit/weatheravailability)':1232 '/documentation/weatherkit/weatherquery)':1208 '/documentation/weatherkit/weatherservice)':1200 '0':237 '1':103 '10':298,370,561 '2':113 '20':650 '25':257,554 '26':61 '3':125 '4':134 '5':1154 '6.3':59 '600':1060 '72f':810,818 'activ':138,391,575,1089 'actor':1035 'add':110,126 'affect':402 'alert':24,46,75,78,389,393,397,423,426,429,431,433,448,573,577,769,1141 'alert.detailsurl':444 'alert.region':440 'alert.severity':437 'alert.summary':434 'altern':710 'alway':813 'api':460,840,1011 'app':36,118,587,798,988 'appear':1022,1104 'appl':26,54,122,139,585,637,682,689,697,785,983,1086,1090,1097 'async':199,273,314,358,410,603,748,1050 'asyncimag':640 'attribut':12,28,56,84,85,584,592,599,611,623,657,677,705,787,789,807,815,821,822,1099,1105,1114 'attribution.combinedmarkdarkurl':675 'attribution.combinedmarklighturl':676 'attribution.legalpageurl':664 'avail':86,87,191,511,540,578,581,723,729,738,751,758,762,765,772,775,940 'availability.alertavailability':764 'availability.minuteavailability':771 'await':205,279,320,376,416,478,495,529,608,753,854,869,905,926,968,1027,1066 'background':687,694 'bodi':631 'byad':367 'cach':996,1006,1030,1039,1055,1062,1072,1148 'calendar.current.date':366 'call':955 'capabl':107,952,963,979,1081 'caption2':666 'chart':1186 'check':724,759,1142,1158 'checkavail':744 'checklist':94,97,1079 'cllocat':198,272,313,357,409,747,1049,1170 'color':1109 'colorschem':626,629,673 'combinedmarkdarkurl':688 'combinedmarklighturl':681 'common':88,91,779 'common-mistak':90 'condit':40,181,223,251,337,551,833,865 'configur':102,964 'content':62 'contigu':258,299 'coreloc':148 'correct':812,861,919,973,1029,1108 'count':837 'countri':741 'crash':894,915 'creat':149,157 'current':3,39,66,70,177,180,216,263,304,476,483,484,491,500,503,547,549,557,832,864,867,874,1046,1071 'current.condition':224 'current.humidity':235 'current.symbolname':229 'current.temperature':220,877 'current.uvindex':248 'current.wind':241 'currentweath':201,217,486,504,548,1040,1052,1209 'custom':341 'daili':6,43,295,381,493,502,507,559 'dailyforecast':331 'dark':674,693 'dashboard':1185 'data':19,661,720,805,998,1103 'dataset':192,455,471,473,488,580,727,736,761,827,835,1123,1164 'date':342,348,1044 'date.now':363 'date.now.timeintervalsince':1058 'day':300,305,327,329,368,562 'day.condition':338 'day.date':333 'day.hightemperature.formatted':335 'day.lowtemperature.formatted':334 'day.precipitationchance':340 'dayweath':1221 'default':266,307 'descript':546 'destin':663 'detail':449 'detailsurl':443 'develop':123,140,984,1087,1091 'devic':132 'direct':244 'display':10,25,52,591,610,635,846,1100,1119 'displaycurr':215 'doubl':236 'els':936 'emptyview':652 'enabl':104,114,953,974,1082 'enddat':365,384,385 'entitl':112,949 'enum':226 'environ':625 'everi':1000,1004,1020 'everyth':850 'extend':1182 'feasibl':717 'fetch':2,38,65,69,176,179,390,452,598,768,825,842,849,862,1018,1124,1160,1233 'fetchalert':406 'fetchattribut':602 'fetchcurrentweath':195 'fetchdailyforecast':310 'fetchextendedforecast':354 'fetchhourlyforecast':269 'fetching-current-weath':68 'fetchweath':1028 'font':665 'forc':892,898 'force-unwrap':891,897 'forecast':8,21,44,72,73,253,255,275,296,316,345,360,374,387,506,508,510,517,536,553,560,566,774,882,885,901,938,1132,1213,1235 'foregroundstyl':667 'forget':946 'format':1176 'frame':648 'framework':1193 'fresh':1064,1073,1077 'full':447,1126 'func':194,214,268,309,353,405,601,743,1045 'given':732 'granular':520 'gust':245 'handl':22,920,1133 'height':649 'histor':31,48,1188 'hour':4,41,254,259,264,286,288,492,501,505,524,552,555,558,569 'hour.condition':294 'hour.date':292 'hour.temperature.formatted':293 'hourlyforecast':290 'hourweath':1217 'humid':234 'id':119,989 'ignor':880 'imag':643,645 'import':143,145,147,615,617 'improv':1014 'includ':380,398,482,499,533,757,814,873,909,930,1070 'info.plist':129 'instanc':159 'integr':17,1187 'interv':1034,1153 'io':35,60 'iter':285,326,1146 'lastfetch':1043,1057,1059,1074 'legal':596,656,704,1113 'legalattributiontext':708,1118 'legalpageurl':700 'let':169,173,202,218,222,227,233,239,246,276,317,361,364,373,413,425,442,475,490,526,622,750,851,858,866,875,902,923,965,1024,1054,1056,1063 'light':686 'light/dark':1112 'limit':513,571,1163 'link':445,653,659,1116 'local':1180 'locat':133,184,197,208,271,282,312,323,356,379,396,408,419,481,498,532,583,733,746,756,857,872,908,929,971,1048,1069,1165 'logo':699 'm':912,933 'make':992 'map':468 'mark':639,684,691,1106 'markurl':642,671 'measur':221,1175 'measurement.formatted':1178 'membership':142,1093 'minim':459 'minut':509,519,534,565,773,881,884,900,903,910,914,924,931,935,937,1002,1131,1156 'minuteforecast':527,535 'mistak':89,92,780 'multipl':487 'name':232,722 'need':457,831,1121 'next':523,568 'next-hour':567 'nil':537,887,921,1136,1144 'nslocationwheninuseusagedescript':127 'object':188 'observ':550 'omit':788 'one':470 'option':1135 'page':658,707,1115 'pass':1169 'pattern':1183 'perform':1015 'permiss':1166 'placehold':651 'portal':124,985,1088 'precipit':339,516,570 'print':250,291,332,336,432,435,438 'privat':627,669,1037,1041 'process':422 'program':141,1092 'project':101 'properti':678,679 'provid':721 'queri':30,80,83,451,541,543,836 'quota':841,1012 'rang':343,349 'reason':1151 'refer':98,99,1181 'references/weatherkit-patterns.md':1190,1191 'region':403,439,514,572,778,890,918,943,1139,1162 'region-limit':1161 'reject':800 'repeat':993 'request':344,994,1167 'requir':11,53,136,586,597,1094 'resiz':646 'respons':463,1007,1147 'result':213 'return':185,209,256,283,297,324,386,420,515,544,606,886,1061,1076 'review':93,96,799,1078 'review-checklist':95 'risk':797 'runtim':958 'safe':167,766 'scaledtofit':647 'scheme':1110 'second':1005 'secondari':668 'select':79,82,450 'selective-queri':81 'sendabl':163 'servic':151,161,795,1172 'servicenam':718 'setup':63,64,100 'sever':399,436 'sf':230 'share':154 'ship':783 'show':20,803 'sign':978 'singl':472 'singleton':155 'size':464 'skill' 'skill-weatherkit' 'sosumi.ai':1195,1199,1203,1207,1211,1215,1219,1223,1227,1231,1239 'sosumi.ai/documentation/weatherkit)':1194 'sosumi.ai/documentation/weatherkit/currentweather)':1210 'sosumi.ai/documentation/weatherkit/dayweather)':1222 'sosumi.ai/documentation/weatherkit/fetching_weather_forecasts_with_weatherkit)':1238 'sosumi.ai/documentation/weatherkit/forecast)':1214 'sosumi.ai/documentation/weatherkit/hourweather)':1218 'sosumi.ai/documentation/weatherkit/weatheralert)':1226 'sosumi.ai/documentation/weatherkit/weatherattribution)':1202 'sosumi.ai/documentation/weatherkit/weatheravailability)':1230 'sosumi.ai/documentation/weatherkit/weatherquery)':1206 'sosumi.ai/documentation/weatherkit/weatherservice)':1198 'sourc':662 'source-dpearson2699' 'specif':347,760 'speed':243 'squar':696 'squaremarkurl':695 'stale':1033,1152 'start':260,301 'startdat':362,372,382,383 'statist':33,49,1189 'stay':1009 'struct':619 'summari':400 'sunni':811,819 'swift':58,144,168,193,267,308,352,404,474,489,525,600,614,742,801,847,895,959,1016 'swiftui':613,616,1184 'symbol':228,231 'target':57 'task':1023 'temp':219,859,876 'temp.formatted':252 'temperatur':1173 'term':793 'text':709,809,817 'thread':166 'thread-saf':165 'throw':200,274,315,359,411,604,749,956,972,1051 'today':564 'topic-accessibility' 'topic-agent-skills' 'topic-ai-coding' 'topic-apple' 'topic-claude-code' 'topic-codex-skills' 'topic-cursor-skills' 'topic-ios' 'topic-ios-development' 'topic-liquid-glass' 'topic-localization' 'topic-mapkit' 'tri':204,278,319,375,415,477,494,528,607,752,853,868,904,925,967,1026,1065 'type':467,542,545 'unavail':539,883 'unnecessari':1130 'unsupport':889,917,1138 'unwrap':893,899 'updat':999 'url':641,672,701 'usag':461 'use':13,15,50,131,152,211,350,588,680,1107 'uvindex':247,249 'valu':369 'var':628,630,670,1038,1042 'variant':1111 'view':621,633,714,1021 'violat':790 'vstack':634,808,816 'weather':7,18,23,27,32,45,55,67,71,74,77,178,187,203,277,318,388,392,414,576,638,660,683,690,698,719,726,786,804,852,966,997,1025,1098,1102,1127,1140,1234 'weather-alert':76 'weather.currentweather':210 'weather.currentweather.temperature':860 'weather.dailyforecast':325 'weather.hourlyforecast':284 'weather.weatheralerts':421 'weatheralert':412,427,574,1225 'weatherattribut':605,624,1201 'weatherattributionview':620,820 'weatheravail':579,1157,1229 'weathercach':1036 'weathercondit':225 'weatherkit':1,14,37,106,115,135,146,589,618,792,948,962,975,1080,1096,1192,1237 'weatherqueri':351,466,1122,1205 'weatherservic':51,170,174,175,954,1197 'weatherservice.attribution':609 'weatherservice.shared':171 'weatherservice.shared.weather':1067 'weatherservice.weather':206,280,321,377,417,479,496,530,754,855,870,906,927,969 'web':706,713 'wherev':1101 'wind':240,242 'within':1010 'without':784,806,950,995 'wrong':802,848,896,960,1017 'xcode':109,977,1084","prices":[{"id":"baf5cc03-180c-4c4e-8d86-7ca50b7bb493","listingId":"0240db32-fc06-4e66-b94d-46104bd845ab","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"dpearson2699","category":"swift-ios-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:34:34.584Z"}],"sources":[{"listingId":"0240db32-fc06-4e66-b94d-46104bd845ab","source":"github","sourceId":"dpearson2699/swift-ios-skills/weatherkit","sourceUrl":"https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/weatherkit","isPrimary":false,"firstSeenAt":"2026-04-18T22:01:31.666Z","lastSeenAt":"2026-05-18T18:53:46.547Z"},{"listingId":"0240db32-fc06-4e66-b94d-46104bd845ab","source":"skills_sh","sourceId":"dpearson2699/swift-ios-skills/weatherkit","sourceUrl":"https://skills.sh/dpearson2699/swift-ios-skills/weatherkit","isPrimary":true,"firstSeenAt":"2026-04-18T20:34:34.584Z","lastSeenAt":"2026-05-07T22:40:34.151Z"}],"details":{"listingId":"0240db32-fc06-4e66-b94d-46104bd845ab","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"dpearson2699","slug":"weatherkit","github":{"repo":"dpearson2699/swift-ios-skills","stars":599,"topics":["accessibility","agent-skills","ai-coding","apple","claude-code","codex-skills","cursor-skills","ios","ios-development","liquid-glass","localization","mapkit","networking","storekit","swift","swift-concurrency","swiftdata","swiftui","widgetkit","xcode"],"license":"other","html_url":"https://github.com/dpearson2699/swift-ios-skills","pushed_at":"2026-04-26T21:04:17Z","description":"Agent Skills for iOS 26+, Swift 6.3, SwiftUI, and modern Apple frameworks","skill_md_sha":"a0aa9ca4304e85679e52f56a5cde9afaa11cfdbe","skill_md_path":"skills/weatherkit/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/weatherkit"},"layout":"multi","source":"github","category":"swift-ios-skills","frontmatter":{"name":"weatherkit","description":"Fetch current, hourly, and daily weather forecasts and display required attribution using WeatherKit. Use when integrating weather data, showing forecasts, handling weather alerts, displaying Apple Weather attribution, or querying historical weather statistics in iOS apps."},"skills_sh_url":"https://skills.sh/dpearson2699/swift-ios-skills/weatherkit"},"updatedAt":"2026-05-18T18:53:46.547Z"}}