One Logo Pool Ball
WeatherKit · IOS API REFERENCE

DayPrecipitationStatistics

struct · iOS 18.0+ · SDK 27.1

struct DayPrecipitationStatistics

A structure that describes precipitation statistics for a day.

Members (8)

get · iOS 18.0+

averagePrecipitationProbability

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

The average percentage probability of precipitation (0.0 = 0%, 1.0 = 100%) for the day.

set · iOS 18.0+

averagePrecipitationProbability

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

The average percentage probability of precipitation (0.0 = 0%, 1.0 = 100%) for the day.

get · iOS 18.0+

averagePrecipitationAmount

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

The average amount of liquid precipitation for the day.

set · iOS 18.0+

averagePrecipitationAmount

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

The average amount of liquid precipitation for the day.

get · iOS 18.0+

averageSnowfallAmount

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

The average amount of snowfall as depth of snow crystals for the day.

set · iOS 18.0+

averageSnowfallAmount

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

The average amount of snowfall as depth of snow crystals for the day.

get · iOS 18.0+

day

TypeScript
get day(): number
Swift declaration
var day: Int

The day of the year, in UTC. The day ranges from 1 to 366.

set · iOS 18.0+

day

TypeScript
set day(value: number)
Swift declaration
var day: Int

The day of the year, in UTC. The day ranges from 1 to 366.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →