One Logo Pool Ball
WeatherKit · IOS API REFERENCE

DayWeather

struct · iOS 16.0+ · SDK 27.1

struct DayWeather

A structure that represents the weather conditions for the day.

Members (49)

get · iOS 18.0+

restOfDayForecast

TypeScript
get restOfDayForecast(): (DayPartForecast) | null
Swift declaration
var restOfDayForecast: DayPartForecast?

The forecast from now until midnight local time. The value is only available for the current day.

set · iOS 18.0+

restOfDayForecast

TypeScript
set restOfDayForecast(value: (DayPartForecast) | null)
Swift declaration
var restOfDayForecast: DayPartForecast?

The forecast from now until midnight local time. The value is only available for the current day.

get · iOS 16.0+

symbolName

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

The SF Symbol icon that represents the day weather condition.

set · iOS 16.0+

symbolName

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

The SF Symbol icon that represents the day weather condition.

get · iOS 18.0+

highWindSpeed

TypeScript
get highWindSpeed(): (_Foundation_Measurement<_Foundation_UnitSpeed>) | null
Swift declaration
var highWindSpeed: Measurement<UnitSpeed>?

The maximum sustained wind speed.

set · iOS 18.0+

highWindSpeed

TypeScript
set highWindSpeed(value: (_Foundation_Measurement<_Foundation_UnitSpeed>) | null)
Swift declaration
var highWindSpeed: Measurement<UnitSpeed>?

The maximum sustained wind speed.

get · iOS 16.0+

precipitation

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

The description of precipitation for this day.

set · iOS 16.0+

precipitation

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

The description of precipitation for this day.

get · iOS 16.0+

lowTemperature

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

The overnight low temperature.

set · iOS 16.0+

lowTemperature

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

The overnight low temperature.

get · iOS 16.0+ · Deprecated in iOS 16.4

rainfallAmount

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

The amount of liquid precipitation for the day.

set · iOS 16.0+ · Deprecated in iOS 16.4

rainfallAmount

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

The amount of liquid precipitation for the day.

get · iOS 16.0+ · Deprecated in iOS 18.0

snowfallAmount

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

The amount of snowfall for the day.

set · iOS 16.0+ · Deprecated in iOS 18.0

snowfallAmount

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

The amount of snowfall for the day.

get · iOS 18.0+

daytimeForecast

TypeScript
get daytimeForecast(): DayPartForecast
Swift declaration
var daytimeForecast: DayPartForecast

The weather forecast from 7AM - 7PM on this day.

set · iOS 18.0+

daytimeForecast

TypeScript
set daytimeForecast(value: DayPartForecast)
Swift declaration
var daytimeForecast: DayPartForecast

The weather forecast from 7AM - 7PM on this day.

get · iOS 16.0+

highTemperature

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

The daytime high temperature.

set · iOS 16.0+

highTemperature

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

The daytime high temperature.

get · iOS 18.0+

maximumHumidity

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

The maximum amount of water vapor in the air for the day. Relative humidity measures the amount of water vapor in the air, compared to the maximum amount that the air can hold at the current temperature. The range of this property is from `0` to `1`, inclusive.

set · iOS 18.0+

maximumHumidity

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

The maximum amount of water vapor in the air for the day. Relative humidity measures the amount of water vapor in the air, compared to the maximum amount that the air can hold at the current temperature. The range of this property is from `0` to `1`, inclusive.

get · iOS 18.0+

minimumHumidity

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

The minimum amount of water vapor in the air for the day. Relative humidity measures the amount of water vapor in the air, compared to the maximum amount that the air can hold at the current temperature. The range of this property is from `0` to `1`, inclusive.

set · iOS 18.0+

minimumHumidity

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

The minimum amount of water vapor in the air for the day. Relative humidity measures the amount of water vapor in the air, compared to the maximum amount that the air can hold at the current temperature. The range of this property is from `0` to `1`, inclusive.

get · iOS 18.0+

maximumVisibility

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

The maximum distance, in meters, at which terrain is visible for the day. The amount of light, and weather conditions like fog, mist, and smog affect visibility.

set · iOS 18.0+

maximumVisibility

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

The maximum distance, in meters, at which terrain is visible for the day. The amount of light, and weather conditions like fog, mist, and smog affect visibility.

get · iOS 18.0+

minimumVisibility

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

The minimum distance, in meters, at which terrain is visible for the day. The amount of light, and weather conditions like fog, mist, and smog affect visibility.

set · iOS 18.0+

minimumVisibility

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

The minimum distance, in meters, at which terrain is visible for the day. The amount of light, and weather conditions like fog, mist, and smog affect visibility.

get · iOS 18.0+

overnightForecast

TypeScript
get overnightForecast(): DayPartForecast
Swift declaration
var overnightForecast: DayPartForecast

The weather forecast for 7PM on this day until 7AM the following day.

set · iOS 18.0+

overnightForecast

TypeScript
set overnightForecast(value: DayPartForecast)
Swift declaration
var overnightForecast: DayPartForecast

The weather forecast for 7PM on this day until 7AM the following day.

get · iOS 18.0+

lowTemperatureTime

TypeScript
get lowTemperatureTime(): (globalThis.Date) | null
Swift declaration
var lowTemperatureTime: Date?

The time at which the low temperature occurs on this day.

set · iOS 18.0+

lowTemperatureTime

TypeScript
set lowTemperatureTime(value: (globalThis.Date) | null)
Swift declaration
var lowTemperatureTime: Date?

The time at which the low temperature occurs on this day.

get · iOS 18.0+

highTemperatureTime

TypeScript
get highTemperatureTime(): (globalThis.Date) | null
Swift declaration
var highTemperatureTime: Date?

The time at which the high temperature occurs on this day.

set · iOS 18.0+

highTemperatureTime

TypeScript
set highTemperatureTime(value: (globalThis.Date) | null)
Swift declaration
var highTemperatureTime: Date?

The time at which the high temperature occurs on this day.

get · iOS 16.0+ · Deprecated in iOS 18.0

precipitationAmount

TypeScript
get precipitationAmount(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
@backDeployed(before: iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4)
var precipitationAmount: Measurement<UnitLength> { get }

The amount of liquid precipitation for the day.

get · iOS 16.0+

precipitationChance

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

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

set · iOS 16.0+

precipitationChance

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

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

get · iOS 18.0+

precipitationAmountByType

TypeScript
get precipitationAmountByType(): PrecipitationAmountByType
Swift declaration
var precipitationAmountByType: PrecipitationAmountByType

A breakdown of amounts of all forms of precipitation forecasted for the day.

set · iOS 18.0+

precipitationAmountByType

TypeScript
set precipitationAmountByType(value: PrecipitationAmountByType)
Swift declaration
var precipitationAmountByType: PrecipitationAmountByType

A breakdown of amounts of all forms of precipitation forecasted for the day.

get · iOS 16.0+

sun

TypeScript
get sun(): SunEvents
Swift declaration
var sun: SunEvents

The solar events for the day.

set · iOS 16.0+

sun

TypeScript
set sun(value: SunEvents)
Swift declaration
var sun: SunEvents

The solar events for the day.

get · iOS 16.0+

date

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

The start time of the day weather.

set · iOS 16.0+

date

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

The start time of the day weather.

get · iOS 16.0+

moon

TypeScript
get moon(): MoonEvents
Swift declaration
var moon: MoonEvents

The lunar events for the day.

set · iOS 16.0+

moon

TypeScript
set moon(value: MoonEvents)
Swift declaration
var moon: MoonEvents

The lunar events for the day.

get · iOS 16.0+

wind

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

The wind speed, direction, and gust.

set · iOS 16.0+

wind

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

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+

condition

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

A description of the weather condition on this day.

set · iOS 16.0+

condition

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

A description of the weather condition on this day.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →