The main aim for this project is to produce conversion functions for the various units of measurement (listed below). The code and the unit tests
are auto-generated by the UnitCodeGenerator tool. Hence any changes need to made within the definitions file.
Note: I am not proficient in the preferred idioms or design paradigms of Swift at this time, so the design may change once I learn more about the preferred ways of coding Swift. Ofcourse the actual functionality is unhindered by such design choices.
* Bits Per Second (bps)
* GigaBits Per Second (Gbps)
* GigaBytes Per Second (GBps)
* Kibibits Per Second (Kibitps)
* KiloBits Per Second (kbps)
* KiloBytes Per Second (kBps)
* Mebibits Per Second (Mibit)
* MegaBits Per Second (Mbps)
* MegaBytes Per Second (MBps)
* TeraBits Per Second (Tbps)
* TeraBytes Per Second (TBps)
The “My Unit Conversions” app. (for Android, iOS and Windows) uses the C# (PutridParrot.Units) version of this library and can be obtained from the following stores/locations.
The Mac version of the app. uses this Swift package and can be obtained from the following location
SwiftUnits
The main aim for this project is to produce conversion functions for the various units of measurement (listed below). The code and the unit tests are auto-generated by the UnitCodeGenerator tool. Hence any changes need to made within the definitions file.
Note: I am not proficient in the preferred idioms or design paradigms of Swift at this time, so the design may change once I learn more about the preferred ways of coding Swift. Ofcourse the actual functionality is unhindered by such design choices.
Unit conversions also available for
C#
Dart
F#
Go
Java
Python
Rust
TypeScript
Example
Example of usage:
Each unit of measure then includes functions to convert to each for example, converting each Temperature unit of measure to each other Temperature.
Angle
Area
Data Storage
Data Transfer Rate
Energy
Force
Frequency
Fuel Economy
Length
Luminous Energy
Magnetomotive Force
Mass
Pressure
Speed
Temperature
Time
Volume
Apps
The “My Unit Conversions” app. (for Android, iOS and Windows) uses the C# (PutridParrot.Units) version of this library and can be obtained from the following stores/locations.
The Mac version of the app. uses this Swift package and can be obtained from the following location