One Logo Pool Ball
WeatherKit · IOS API REFERENCE

PrecipitationAmountByType

struct · iOS 18.0+ · SDK 27.1

struct PrecipitationAmountByType

A structure that provides a breakdown of amounts of all forms of precipitation that is expected to occur over a period of time.

Members (12)

get · iOS 18.0+

snowfallAmount

TypeScript
get snowfallAmount(): SnowfallAmount
Swift declaration
var snowfallAmount: SnowfallAmount

Describes the amount of snowfall for the period.

set · iOS 18.0+

snowfallAmount

TypeScript
set snowfallAmount(value: SnowfallAmount)
Swift declaration
var snowfallAmount: SnowfallAmount

Describes the amount of snowfall for the period.

get · iOS 18.0+

precipitation

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

The amount of liquid equivalent of all precipitation for the period.

set · iOS 18.0+

precipitation

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

The amount of liquid equivalent of all precipitation for the period.

get · iOS 18.0+

hail

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

The amount of hail for the period.

set · iOS 18.0+

hail

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

The amount of hail for the period.

get · iOS 18.0+

mixed

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

The amount of wintry mix for the period.

set · iOS 18.0+

mixed

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

The amount of wintry mix for the period.

get · iOS 18.0+

sleet

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

The amount of sleet for the period.

set · iOS 18.0+

sleet

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

The amount of sleet for the period.

get · iOS 18.0+

rainfall

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

The amount of rainfall for the period.

set · iOS 18.0+

rainfall

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

The amount of rainfall for the period.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →