UnitSystemType
public struct UnitSystemType : Equatable
Defines types of unit system handling.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Current unit system value.
Declaration
Swift
public let unitSystem: UnitsSystem
-
A Boolean value that indicates whether a unit system should be updated based on current location country.
Declaration
Swift
public let isDynamic: Bool
-
Returns an instance that indicates that its unit system should be dynamic.
Declaration
Swift
public static func dynamic() -> UnitSystemType
-
Returns an instance that has a defined unit system. The value provided is always used.
Declaration
Swift
public static func fixed(unitSystem: UnitsSystem) -> UnitSystemType
-
Returns an instance configured by default.
Declaration
Swift
public static func `default`() -> UnitSystemType