cloudCover
TypeScriptget cloudCover(): numberSwift declarationvar cloudCover: DoubleThe percentage of the sky covered with clouds. The value is from `0` (no cloud cover) to `1` (complete cloud cover).
struct · iOS 16.0+ · SDK 27.1
struct HourWeatherA structure that represents the weather conditions for the hour.
get cloudCover(): numberSwift declarationvar cloudCover: DoubleThe percentage of the sky covered with clouds. The value is from `0` (no cloud cover) to `1` (complete cloud cover).
set cloudCover(value: number)Swift declarationvar cloudCover: DoubleThe percentage of the sky covered with clouds. The value is from `0` (no cloud cover) to `1` (complete cloud cover).
get isDaylight(): booleanSwift declarationvar isDaylight: BoolThe presence or absence of daylight at the requested location and hour.
set isDaylight(value: boolean)Swift declarationvar isDaylight: BoolThe presence or absence of daylight at the requested location and hour.
get symbolName(): stringSwift declarationvar symbolName: StringThe SF Symbol icon that represents the hour weather condition and whether it's daylight on the hour.
set symbolName(value: string)Swift declarationvar symbolName: StringThe SF Symbol icon that represents the hour weather condition and whether it's daylight on the hour.
get visibility(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationvar 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 visibility(value: _Foundation_Measurement<_Foundation_UnitLength>)Swift declarationvar 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 temperature(): _Foundation_Measurement<_Foundation_UnitTemperature>Swift declarationvar temperature: Measurement<UnitTemperature>The temperature during the hour.
set temperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar temperature: Measurement<UnitTemperature>The temperature during the hour.
get precipitation(): PrecipitationSwift declarationvar precipitation: PrecipitationDescription of precipitation for this hour.
set precipitation(value: Precipitation)Swift declarationvar precipitation: PrecipitationDescription of precipitation for this hour.
get pressureTrend(): PressureTrendSwift declarationvar pressureTrend: PressureTrendThe kind and amount of atmospheric pressure change over time.
set pressureTrend(value: PressureTrend)Swift declarationvar pressureTrend: PressureTrendThe kind and amount of atmospheric pressure change over time.
get snowfallAmount(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationvar 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 snowfallAmount(value: _Foundation_Measurement<_Foundation_UnitLength>)Swift declarationvar 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 apparentTemperature(): _Foundation_Measurement<_Foundation_UnitTemperature>Swift declarationvar apparentTemperature: Measurement<UnitTemperature>The apparent, or "feels like" temperature during the hour.
set apparentTemperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar apparentTemperature: Measurement<UnitTemperature>The apparent, or "feels like" temperature during the hour.
get precipitationAmount(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationvar 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 precipitationAmount(value: _Foundation_Measurement<_Foundation_UnitLength>)Swift declarationvar 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 precipitationChance(): numberSwift declarationvar precipitationChance: DoubleThe probability of precipitation during the hour. The value is from `0` (0% probability) to `1` (100% probability).
set precipitationChance(value: number)Swift declarationvar precipitationChance: DoubleThe probability of precipitation during the hour. The value is from `0` (0% probability) to `1` (100% probability).
get cloudCoverByAltitude(): CloudCoverByAltitudeSwift declarationvar cloudCoverByAltitude: CloudCoverByAltitudeThe percentage of the sky covered with low altitude, middle altitude and high altitude clouds during the period.
set cloudCoverByAltitude(value: CloudCoverByAltitude)Swift declarationvar cloudCoverByAltitude: CloudCoverByAltitudeThe percentage of the sky covered with low altitude, middle altitude and high altitude clouds during the period.
get date(): globalThis.DateSwift declarationvar date: DateThe start time of the hour weather.
set date(value: globalThis.Date)Swift declarationvar date: DateThe start time of the hour weather.
get wind(): WindSwift declarationvar wind: WindWind data describing the wind speed, direction, and gust.
set wind(value: Wind)Swift declarationvar wind: WindWind data describing the wind speed, direction, and gust.
get uvIndex(): UVIndexSwift declarationvar uvIndex: UVIndexThe expected intensity of ultraviolet radiation from the sun.
set uvIndex(value: UVIndex)Swift declarationvar uvIndex: UVIndexThe expected intensity of ultraviolet radiation from the sun.
get dewPoint(): _Foundation_Measurement<_Foundation_UnitTemperature>Swift declarationvar dewPoint: Measurement<UnitTemperature>The amount of moisture in the air. Dew point is the temperature at which air is saturated with water vapor.
set dewPoint(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar dewPoint: Measurement<UnitTemperature>The amount of moisture in the air. Dew point is the temperature at which air is saturated with water vapor.
get humidity(): numberSwift declarationvar humidity: DoubleThe 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 humidity(value: number)Swift declarationvar humidity: DoubleThe 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 pressure(): _Foundation_Measurement<_Foundation_UnitPressure>Swift declarationvar 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 pressure(value: _Foundation_Measurement<_Foundation_UnitPressure>)Swift declarationvar 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 condition(): WeatherConditionSwift declarationvar condition: WeatherConditionA description of the weather condition for this hour.
set condition(value: WeatherCondition)Swift declarationvar condition: WeatherConditionA description of the weather condition for this hour.
No declarations were skipped in this snapshot.