One Logo Pool Ball
WeatherKit · IOS API REFERENCE

DayPartForecast

struct · iOS 18.0+ · SDK 27.1

struct DayPartForecast

A structure that represents the weather forecast for part of the day.

Members (28)

get · iOS 18.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 18.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 18.0+

highWindSpeed

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

The maximum sustained wind speed for the day part.

set · iOS 18.0+

highWindSpeed

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

The maximum sustained wind speed for the day part.

get · iOS 18.0+

precipitation

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

The description of precipitation for the day part.

set · iOS 18.0+

precipitation

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

The description of precipitation for the day part.

get · iOS 18.0+

lowTemperature

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

The overnight low temperature for the day part.

set · iOS 18.0+

lowTemperature

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

The overnight low temperature for the day part.

get · iOS 18.0+

highTemperature

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

The high temperature for the day part.

set · iOS 18.0+

highTemperature

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

The high temperature for the day part.

get · iOS 18.0+

maximumHumidity

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

The maximum humidity for the day part. 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 humidity for the day part. 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 humidity for the day part. 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 humidity for the day part. 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(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
var maximumVisibility: Measurement<UnitLength>

The maximum visibility for the day part.

set · iOS 18.0+

maximumVisibility

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

The maximum visibility for the day part.

get · iOS 18.0+

minimumVisibility

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

The minimum visibility for the day part.

set · iOS 18.0+

minimumVisibility

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

The minimum visibility for the day part.

get · iOS 18.0+

precipitationChance

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

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

set · iOS 18.0+

precipitationChance

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

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

get · iOS 18.0+

cloudCoverByAltitude

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

The fraction of sky obscured by low altitude, medium altitude, and high altitude clouds.

set · iOS 18.0+

cloudCoverByAltitude

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

The fraction of sky obscured by low altitude, medium altitude, and high altitude clouds.

get · iOS 18.0+

precipitationAmountByType

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

A breakdown of all precipitation forecasted for the day.

set · iOS 18.0+

precipitationAmountByType

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

A breakdown of all precipitation forecasted for the day.

get · iOS 18.0+

wind

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

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

set · iOS 18.0+

wind

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

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

get · iOS 18.0+

condition

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

A description of the weather condition

set · iOS 18.0+

condition

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

A description of the weather condition

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →