Weatherkit: Possible Values of CurrentWeatherData.conditionCode

Is there a list of possible values for CurrentWeather.CurrentWeatherData.conditionCode? I'm working with the WeatherKit REST API and I would like to display different icons based on the value of conditionCode.

Replies

You might use symbol.Name

https://developer.apple.com/documentation/weatherkit/currentweather/symbolname

Refer to

  • SF Symbols --> Weather

to get icons https://developer.apple.com/sf-symbols/

e.g. cloud.rain and more

I've got them here: https://github.com/hrbrmstr/weatherkit/blob/batman/R/enumerations.R