One Logo Pool Ball
Foundation · IOS API REFERENCE

UnitTemperature

class · iOS 10.0+ · SDK 27.1

class UnitTemperature

Members (4)

get · iOS 10.0+

celsius

TypeScript
static get celsius(): UnitTemperature
Swift declaration
@NSCopying class var celsius: UnitTemperature { get }
get · iOS 10.0+

fahrenheit

TypeScript
static get fahrenheit(): UnitTemperature
Swift declaration
@NSCopying class var fahrenheit: UnitTemperature { get }
get · iOS 10.0+

kelvin

TypeScript
static get kelvin(): UnitTemperature
Swift declaration
@NSCopying class var kelvin: UnitTemperature { get }
init · iOS 16.0+

init

TypeScript
static init(forLocale: Locale, usage?: MeasurementFormatUnitUsage<UnitTemperature>): UnitTemperature
Swift declaration
convenience init(forLocale: Locale, usage: MeasurementFormatUnitUsage<UnitTemperature> = .general)

Creates a `UnitTemperature` which the specified `locale` prefers for the specific `usage`.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UnitTemperature.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →