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 CurrentWeatherA structure that describes the current conditions observed at a location. The current conditions may not be a literal observation, but rather the result of a mathematical weather model predicting conditions based on real observations.
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: BoolA Boolean value indicating whether there is daylight.
set isDaylight(value: boolean)Swift declarationvar isDaylight: BoolA Boolean value indicating whether there is daylight.
get symbolName(): stringSwift declarationvar symbolName: StringThe SF Symbol icon that represents the current weather condition and whether it's daylight at the current date.
set symbolName(value: string)Swift declarationvar symbolName: StringThe SF Symbol icon that represents the current weather condition and whether it's daylight at the current date.
get visibility(): _Foundation_Measurement<_Foundation_UnitLength>Swift declarationvar visibility: Measurement<UnitLength>The distance at which terrain is visible. 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 terrain is visible. 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 current temperature.
set temperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar temperature: Measurement<UnitTemperature>The current temperature.
get pressureTrend(): PressureTrendSwift declarationvar pressureTrend: PressureTrendThe direction of change of the sea level air pressure.
set pressureTrend(value: PressureTrend)Swift declarationvar pressureTrend: PressureTrendThe direction of change of the sea level air pressure.
get apparentTemperature(): _Foundation_Measurement<_Foundation_UnitTemperature>Swift declarationvar apparentTemperature: Measurement<UnitTemperature>The feels-like temperature when factoring wind and humidity.
set apparentTemperature(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar apparentTemperature: Measurement<UnitTemperature>The feels-like temperature when factoring wind and humidity.
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 precipitationIntensity(): _Foundation_Measurement<_Foundation_UnitSpeed>Swift declarationvar precipitationIntensity: Measurement<UnitSpeed>The current precipitation intensity.
set precipitationIntensity(value: _Foundation_Measurement<_Foundation_UnitSpeed>)Swift declarationvar precipitationIntensity: Measurement<UnitSpeed>The current precipitation intensity.
get date(): globalThis.DateSwift declarationvar date: DateThe date of the current weather.
set date(value: globalThis.Date)Swift declarationvar date: DateThe date of the current weather.
get wind(): WindSwift declarationvar wind: WindThe wind speed, direction, and gust.
set wind(value: Wind)Swift declarationvar wind: WindThe wind speed, direction, and gust.
get uvIndex(): UVIndexSwift declarationvar uvIndex: UVIndexThe level of ultraviolet radiation.
set uvIndex(value: UVIndex)Swift declarationvar uvIndex: UVIndexThe level of ultraviolet radiation.
get dewPoint(): _Foundation_Measurement<_Foundation_UnitTemperature>Swift declarationvar dewPoint: Measurement<UnitTemperature>The temperature at which relative humidity is 100%.
set dewPoint(value: _Foundation_Measurement<_Foundation_UnitTemperature>)Swift declarationvar dewPoint: Measurement<UnitTemperature>The temperature at which relative humidity is 100%.
get humidity(): numberSwift declarationvar humidity: DoubleThe amount of water vapor in the air. 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 humidity(value: number)Swift declarationvar humidity: DoubleThe amount of water vapor in the air. 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 metadata(): WeatherMetadataSwift declarationvar metadata: WeatherMetadataDescriptive information about the current weather data.
set metadata(value: WeatherMetadata)Swift declarationvar metadata: WeatherMetadataDescriptive information about the current weather data.
get pressure(): _Foundation_Measurement<_Foundation_UnitPressure>Swift declarationvar pressure: Measurement<UnitPressure>The sea level air pressure in millibars. 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 sea level air pressure in millibars. This is a reduced pressure calculated by using observed conditions to remove the effects of elevation from pressure readings.
get condition(): WeatherConditionSwift declarationvar condition: WeatherConditionAn enumeration value indicating the condition at the time.
set condition(value: WeatherCondition)Swift declarationvar condition: WeatherConditionAn enumeration value indicating the condition at the time.
No declarations were skipped in this snapshot.