WeatherKit Tutorial: Getting Started | Kodeco

This content was released on Sep 18 2023. The official support period is 6-months from this date.

The tutorial covers exploring WeatherKit, displaying local weather forecasts and using Swift Charts for detailed predictions across locations.


This is a companion discussion topic for the original entry at https://www.kodeco.com/41376031-weatherkit-tutorial-getting-started

Great tutorial! Thank you for taking the time to make it. However, I did notice that “forecast” is misspelled in the WeatherData.swift code in several places in the downloaded materials but not in the tutorial itself.

Great tutorial: I cannot believe the simplicity… your steps have helped me see two aspects from which my apps can consume WeatherKit: the simple temperature as well as a full-on week forecast… AND then there’s the moon phases one of my family members will really enjoy. Thanks!

As I was applying what I learned from this tutorial into one of my apps, it took me a bit (appreciation to Robert) to figure out that I need to add the “Privacy - Location…” element to my Info.plist. I know this is not really specific to WeatherKit; however, in order to obtain the current location, this is a central tenet. You might consider adding a side note pointing to Apple’s article (Configuring your app to use location services | Apple Developer Documentation) and then the simple steps I took to make this all work out (just add a Key “Privacy - Location When in Use Usage Description”, and then a description. I have also learned that this will soon be an app requirement. I hope this can help someone else… THANKS AGAIN!

Hey, I am needing to retrieve more data for the current weather. I have seen a couple other apps able to determine the GOW (Grains of Water) and DA (Density Altitude) from the current weather on WeatherKit. How are they doing this? I really need to figure it out! Thank you.