Enumerationswift 6.0.1FoundationEssentials
MeasurementUnit
enum MeasurementUnit
enum MeasurementUnit
s20FoundationEssentials17LocalePreferencesV15MeasurementUnitO
What are these?89KPB
import FoundationEssentials
struct LocalePreferences
case centimeters
case inches
init()
init(metricUnits: Bool? = nil, languages: [String]? = nil, locale: String? = nil, collationOrder: String? = nil, firstWeekday: [Calendar.Identifier : Int]? = nil, minDaysInFirstWeek: [Calendar.Identifier : Int]? = nil, country: String? = nil, measurementUnits: LocalePreferences.MeasurementUnit? = nil, temperatureUnit: LocalePreferences.TemperatureUnit? = nil, force24Hour: Bool? = nil, force12Hour: Bool? = nil, numberSymbols: [UInt32 : String]? = nil)
var collationOrder: String?
var country: String?
var firstWeekday: [Calendar.Identifier : Int]?
var force12Hour: Bool?
var force24Hour: Bool?
var hourCycle: Locale.HourCycle? { get }
var languages: [String]?
var locale: String?
var measurementSystem: Locale.MeasurementSystem? { get }
var measurementUnits: LocalePreferences.MeasurementUnit?
var metricUnits: Bool?
var minDaysInFirstWeek: [Calendar.Identifier : Int]?
var numberSymbols: [UInt32 : String]?
var temperatureUnit: LocalePreferences.TemperatureUnit?
mutating func apply(_ prefs: LocalePreferences)
enum TemperatureUnit
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.