UnitSystemType

public struct UnitSystemType : Equatable

Defines types of unit system handling.

  • 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