WeatherKit Swift API -metadata reportedTime

Hi there, I am using WeatherKit to display weather forecast information in an app.

I would like to include some information about when the weather forecast was issued for my users to see.

This information is included in the response Metadata as documented in the WeatherKit REST API docs:

https://developer.apple.com/documentation/weatherkitrestapi/metadata

Specifically there is a “reportedTime” property which I would like to use here.

However I am consuming WeatherKit via the Swift API, I don’t see this property available via the Swift APIs.

How can I access the reportedTime property via the WeatherKit Swift APIs? Or is it not exposed via the Swift APIs?

WeatherKit Swift API -metadata reportedTime
 
 
Q