One Logo Pool Ball
WeatherKit · IOS API REFERENCE

CurrentWeather

struct · iOS 16.0+ · SDK 27.1

struct CurrentWeather

A 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.

Members (34)

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

A Boolean value indicating whether there is daylight.

set · iOS 16.0+

isDaylight

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

A Boolean value indicating whether there is daylight.

get · iOS 16.0+

symbolName

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

The SF Symbol icon that represents the current weather condition and whether it's daylight at the current date.

set · iOS 16.0+

symbolName

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

The SF Symbol icon that represents the current weather condition and whether it's daylight at the current date.

get · iOS 16.0+

visibility

TypeScript
get visibility(): _Foundation_Measurement<_Foundation_UnitLength>
Swift declaration
var 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 · iOS 16.0+

visibility

TypeScript
set visibility(value: _Foundation_Measurement<_Foundation_UnitLength>)
Swift declaration
var 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 · iOS 16.0+

temperature

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

The current temperature.

set · iOS 16.0+

temperature

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

The current temperature.

get · iOS 16.0+

pressureTrend

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

The direction of change of the sea level air pressure.

set · iOS 16.0+

pressureTrend

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

The direction of change of the sea level air pressure.

get · iOS 16.0+

apparentTemperature

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

The feels-like temperature when factoring wind and humidity.

set · iOS 16.0+

apparentTemperature

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

The feels-like temperature when factoring wind and humidity.

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+

precipitationIntensity

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

The current precipitation intensity.

set · iOS 16.0+

precipitationIntensity

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

The current precipitation intensity.

get · iOS 16.0+

date

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

The date of the current weather.

set · iOS 16.0+

date

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

The date of the current weather.

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 level of ultraviolet radiation.

set · iOS 16.0+

uvIndex

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

The level of ultraviolet radiation.

get · iOS 16.0+

dewPoint

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

The temperature at which relative humidity is 100%.

set · iOS 16.0+

dewPoint

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

The temperature at which relative humidity is 100%.

get · iOS 16.0+

humidity

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

The 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 · iOS 16.0+

humidity

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

The 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 · iOS 16.0+

metadata

TypeScript
get metadata(): WeatherMetadata
Swift declaration
var metadata: WeatherMetadata

Descriptive information about the current weather data.

set · iOS 16.0+

metadata

TypeScript
set metadata(value: WeatherMetadata)
Swift declaration
var metadata: WeatherMetadata

Descriptive information about the current weather data.

get · iOS 16.0+

pressure

TypeScript
get pressure(): _Foundation_Measurement<_Foundation_UnitPressure>
Swift declaration
var 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 · iOS 16.0+

pressure

TypeScript
set pressure(value: _Foundation_Measurement<_Foundation_UnitPressure>)
Swift declaration
var 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 · iOS 16.0+

condition

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

An enumeration value indicating the condition at the time.

set · iOS 16.0+

condition

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

An enumeration value indicating the condition at the time.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →