Scale alternatives and similar libraries
Based on the "Utility" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Scale or a related project?
Unit converter in Swift
To run the example project, clone the repo, and run
pod install from the Example directory first.
- Strongly typed unit
- Division may throw error
- Operation upon same type, the result is the smaller unit of the two
let length = 5.kilometer + 7.meter // 5007 meter let weight = 10.0.kilogram * 5.gram // 50000 gram
- Convert to any unit of the same type
2.week.to(unit: .hour) // 336 hour
let angle = 5.degree + 2.radian
let area = 5.acre + 2.hectare
let energy = 5.joule + 2.watthour
let metric = 5.base + 2.kilo
let volume = 5.liter + 2.gallon
let temperature = 5.fahrenheit + 2.celsius
let time = 5.day + 2.hour
let length = 5.yard + 2.meter
let weight = 5.kilogram + 2.pound
- Add new definition file with extension
xcrun swift Script.swiftinside
- Add newly generated files into
Outputgroup, target Scale
- Go into
Some unit types like
Temperature must be converted manually
Scale is available through CocoaPods. To install it, simply add the following line to your Podfile:
Khoa Pham, email@example.com
Scale is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Scale README section above are relevant to that project's source code only.