One Logo Pool Ball
WeatherKit · IOS API REFERENCE

Weather

struct · iOS 16.0+ · SDK 27.1

struct Weather

A model representing the aggregate weather data the caller requests.

Members (12)

get · iOS 16.0+

currentWeather

TypeScript
get currentWeather(): CurrentWeather
Swift declaration
var currentWeather: CurrentWeather

The current weather forecast.

set · iOS 16.0+

currentWeather

TypeScript
set currentWeather(value: CurrentWeather)
Swift declaration
var currentWeather: CurrentWeather

The current weather forecast.

get · iOS 16.0+

availability

TypeScript
get availability(): WeatherAvailability
Swift declaration
var availability: WeatherAvailability

Flags containing information about data availability and attribution.

set · iOS 16.0+

availability

TypeScript
set availability(value: WeatherAvailability)
Swift declaration
var availability: WeatherAvailability

Flags containing information about data availability and attribution.

get · iOS 16.0+

dailyForecast

TypeScript
get dailyForecast(): Forecast<DayWeather>
Swift declaration
var dailyForecast: Forecast<DayWeather>

The daily forecast.

set · iOS 16.0+

dailyForecast

TypeScript
set dailyForecast(value: Forecast<DayWeather>)
Swift declaration
var dailyForecast: Forecast<DayWeather>

The daily forecast.

get · iOS 16.0+

weatherAlerts

TypeScript
get weatherAlerts(): (Array<WeatherAlert>) | null
Swift declaration
var weatherAlerts: [WeatherAlert]?

A list of severe weather alerts.

set · iOS 16.0+

weatherAlerts

TypeScript
set weatherAlerts(value: (Array<WeatherAlert>) | null)
Swift declaration
var weatherAlerts: [WeatherAlert]?

A list of severe weather alerts.

get · iOS 16.0+

hourlyForecast

TypeScript
get hourlyForecast(): Forecast<HourWeather>
Swift declaration
var hourlyForecast: Forecast<HourWeather>

The hourly forecast.

set · iOS 16.0+

hourlyForecast

TypeScript
set hourlyForecast(value: Forecast<HourWeather>)
Swift declaration
var hourlyForecast: Forecast<HourWeather>

The hourly forecast.

get · iOS 16.0+

minuteForecast

TypeScript
get minuteForecast(): (Forecast<MinuteWeather>) | null
Swift declaration
var minuteForecast: Forecast<MinuteWeather>?

The minute-by-minute forecast. Depending upon region support and data availability, this may be `nil`.

set · iOS 16.0+

minuteForecast

TypeScript
set minuteForecast(value: (Forecast<MinuteWeather>) | null)
Swift declaration
var minuteForecast: Forecast<MinuteWeather>?

The minute-by-minute forecast. Depending upon region support and data availability, this may be `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →