UnitSystemType
public struct UnitSystemType : Equatable
Defines types of unit system handling.
-
Creates a unit system type with provided arguments.
Declaration
Swift
public init(unitSystem: UnitsSystem, isDynamic: Bool)
-
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