One Logo Pool Ball
WeatherKit · IOS API REFERENCE

WeatherMetadata

struct · iOS 16.0+ · SDK 27.1

struct WeatherMetadata

A structure that provides additional weather information. Metadata information includes the location, date of the request, the date the data will expire, and required provider attribution.

Members (5)

get · iOS 16.0+

expirationDate

TypeScript
get expirationDate(): globalThis.Date
Swift declaration
var expirationDate: Date

The time the weather data expires.

set · iOS 16.0+

expirationDate

TypeScript
set expirationDate(value: globalThis.Date)
Swift declaration
var expirationDate: Date

The time the weather data expires.

get · iOS 16.0+

date

TypeScript
get date(): globalThis.Date
Swift declaration
var date: Date

The time of the weather data request.

set · iOS 16.0+

date

TypeScript
set date(value: globalThis.Date)
Swift declaration
var date: Date

The time of the weather data request.

get · iOS 16.0+

location

TypeScript
get location(): __LocationEssentials_CLLocation
Swift declaration
var location: CLLocation { get }

The location of the request.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →