One Logo Pool Ball
WeatherKit · IOS API REFERENCE

HourWeather

struct · iOS 16.0+ · SDK 27.1

struct HourWeather

A structure that represents the weather conditions for the hour.

Members (38)

get · iOS 16.0+

cloudCover

TypeScript
get cloudCover(): number
Swift declaration
var cloudCover: Double

The percentage of the sky covered with clouds. The value is from `0` (no cloud cover) to `1` (complete cloud cover).

set · iOS 16.0+

cloudCover

TypeScript
set cloudCover(value: number)
Swift declaration
var cloudCover: Double

The percentage of the sky covered with clouds. The value is from `0` (no cloud cover) to `1` (complete cloud cover).

get · iOS 16.0+

isDaylight

TypeScript
get isDaylight(): boolean
Swift declaration
var isDaylight: Bool

The presence or absence of daylight at the requested location and hour.

set · iOS 16.0+

isDaylight

TypeScript
set isDaylight(value: boolean)
Swift declaration
var isDaylight: Bool

The presence or absence of daylight at the requested location and hour.

get · iOS 16.0+

symbolName

TypeScript
get symbolName(): string
Swift declaration
var symbolName: String

The SF Symbol icon that represents the hour weather condition and whether it's daylight on the hour.

set · iOS 16.0+

symbolName

TypeScript
set symbolName(value: string)
Swift declaration
var symbolName: String

The SF Symbol icon that represents the hour weather condition and whether it's daylight on the hour.

get · iOS 16.0+

visibility

TypeScript
get visibility(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
var visibility: Measurement<UnitLength>

The distance at which an object can be clearly seen. The amount of light and weather conditions like fog, mist, and smog affect visibility.

set · iOS 16.0+

visibility

TypeScript
set visibility(value: _Foundation_Measurement<_Foundation_UnitLength>)
Swift declaration
var visibility: Measurement<UnitLength>

The distance at which an object can be clearly seen. The amount of light and weather conditions like fog, mist, and smog affect visibility.

get · iOS 16.0+

temperature

TypeScript
get temperature(): _Foundation_Measurement<_Foundation_UnitTemperature>
Swift declaration
var temperature: Measurement<UnitTemperature>

The temperature during the hour.

set · iOS 16.0+

temperature

TypeScript
set temperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)
Swift declaration
var temperature: Measurement<UnitTemperature>

The temperature during the hour.

get · iOS 16.0+

precipitation

TypeScript
get precipitation(): Precipitation
Swift declaration
var precipitation: Precipitation

Description of precipitation for this hour.

set · iOS 16.0+

precipitation

TypeScript
set precipitation(value: Precipitation)
Swift declaration
var precipitation: Precipitation

Description of precipitation for this hour.

get · iOS 16.0+

pressureTrend

TypeScript
get pressureTrend(): PressureTrend
Swift declaration
var pressureTrend: PressureTrend

The kind and amount of atmospheric pressure change over time.

set · iOS 16.0+

pressureTrend

TypeScript
set pressureTrend(value: PressureTrend)
Swift declaration
var pressureTrend: PressureTrend

The kind and amount of atmospheric pressure change over time.

get · iOS 18.0+

snowfallAmount

TypeScript
get snowfallAmount(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
var snowfallAmount: Measurement<UnitLength>

The amount of snowfall for the hour. Snowfall amount refers to the depth of snow rather than the liquid equivalent. The system computes this value by applying a temperature-based conversion to crystal size.

set · iOS 18.0+

snowfallAmount

TypeScript
set snowfallAmount(value: _Foundation_Measurement<_Foundation_UnitLength>)
Swift declaration
var snowfallAmount: Measurement<UnitLength>

The amount of snowfall for the hour. Snowfall amount refers to the depth of snow rather than the liquid equivalent. The system computes this value by applying a temperature-based conversion to crystal size.

get · iOS 16.0+

apparentTemperature

TypeScript
get apparentTemperature(): _Foundation_Measurement<_Foundation_UnitTemperature>
Swift declaration
var apparentTemperature: Measurement<UnitTemperature>

The apparent, or "feels like" temperature during the hour.

set · iOS 16.0+

apparentTemperature

TypeScript
set apparentTemperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)
Swift declaration
var apparentTemperature: Measurement<UnitTemperature>

The apparent, or "feels like" temperature during the hour.

get · iOS 16.0+

precipitationAmount

TypeScript
get precipitationAmount(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
var precipitationAmount: Measurement<UnitLength>

The amount of precipitation for the hour. This value refers to the liquid equivalent of all precipitation amounts. Note that since this is the amount over the hour and the precipitation intensity is also amount over the hour, this property also means precipitationIntensity

set · iOS 16.0+

precipitationAmount

TypeScript
set precipitationAmount(value: _Foundation_Measurement<_Foundation_UnitLength>)
Swift declaration
var precipitationAmount: Measurement<UnitLength>

The amount of precipitation for the hour. This value refers to the liquid equivalent of all precipitation amounts. Note that since this is the amount over the hour and the precipitation intensity is also amount over the hour, this property also means precipitationIntensity

get · iOS 16.0+

precipitationChance

TypeScript
get precipitationChance(): number
Swift declaration
var precipitationChance: Double

The probability of precipitation during the hour. The value is from `0` (0% probability) to `1` (100% probability).

set · iOS 16.0+

precipitationChance

TypeScript
set precipitationChance(value: number)
Swift declaration
var precipitationChance: Double

The probability of precipitation during the hour. The value is from `0` (0% probability) to `1` (100% probability).

get · iOS 18.0+

cloudCoverByAltitude

TypeScript
get cloudCoverByAltitude(): CloudCoverByAltitude
Swift declaration
var cloudCoverByAltitude: CloudCoverByAltitude

The percentage of the sky covered with low altitude, middle altitude and high altitude clouds during the period.

set · iOS 18.0+

cloudCoverByAltitude

TypeScript
set cloudCoverByAltitude(value: CloudCoverByAltitude)
Swift declaration
var cloudCoverByAltitude: CloudCoverByAltitude

The percentage of the sky covered with low altitude, middle altitude and high altitude clouds during the period.

get · iOS 16.0+

date

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

The start time of the hour weather.

set · iOS 16.0+

date

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

The start time of the hour weather.

get · iOS 16.0+

wind

TypeScript
get wind(): Wind
Swift declaration
var wind: Wind

Wind data describing the wind speed, direction, and gust.

set · iOS 16.0+

wind

TypeScript
set wind(value: Wind)
Swift declaration
var wind: Wind

Wind data describing the wind speed, direction, and gust.

get · iOS 16.0+

uvIndex

TypeScript
get uvIndex(): UVIndex
Swift declaration
var uvIndex: UVIndex

The expected intensity of ultraviolet radiation from the sun.

set · iOS 16.0+

uvIndex

TypeScript
set uvIndex(value: UVIndex)
Swift declaration
var uvIndex: UVIndex

The expected intensity of ultraviolet radiation from the sun.

get · iOS 16.0+

dewPoint

TypeScript
get dewPoint(): _Foundation_Measurement<_Foundation_UnitTemperature>
Swift declaration
var dewPoint: Measurement<UnitTemperature>

The amount of moisture in the air. Dew point is the temperature at which air is saturated with water vapor.

set · iOS 16.0+

dewPoint

TypeScript
set dewPoint(value: _Foundation_Measurement<_Foundation_UnitTemperature>)
Swift declaration
var dewPoint: Measurement<UnitTemperature>

The amount of moisture in the air. Dew point is the temperature at which air is saturated with water vapor.

get · iOS 16.0+

humidity

TypeScript
get humidity(): number
Swift declaration
var humidity: Double

The humidity for the hour. Relative humidity measures the amount of water vapor in the air compared to the maximum amount that the air could normally hold at the current temperature. The value is from `0` (no humidity) to `1` (100% humidity).

set · iOS 16.0+

humidity

TypeScript
set humidity(value: number)
Swift declaration
var humidity: Double

The humidity for the hour. Relative humidity measures the amount of water vapor in the air compared to the maximum amount that the air could normally hold at the current temperature. The value is from `0` (no humidity) to `1` (100% humidity).

get · iOS 16.0+

pressure

TypeScript
get pressure(): _Foundation_Measurement<_Foundation_UnitPressure>
Swift declaration
var pressure: Measurement<UnitPressure>

The atmospheric pressure at sea level at a given location. This is a reduced pressure calculated by using observed conditions to remove the effects of elevation from pressure readings.

set · iOS 16.0+

pressure

TypeScript
set pressure(value: _Foundation_Measurement<_Foundation_UnitPressure>)
Swift declaration
var pressure: Measurement<UnitPressure>

The atmospheric pressure at sea level at a given location. This is a reduced pressure calculated by using observed conditions to remove the effects of elevation from pressure readings.

get · iOS 16.0+

condition

TypeScript
get condition(): WeatherCondition
Swift declaration
var condition: WeatherCondition

A description of the weather condition for this hour.

set · iOS 16.0+

condition

TypeScript
set condition(value: WeatherCondition)
Swift declaration
var condition: WeatherCondition

A description of the weather condition for this hour.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →