Home

Awesome

Scale

❤️ Support my app ❤️

❤️❤️😇😍🤘❤️❤️

Unit converter in Swift

[![CI Status](http://img.shields.io/travis/Khoa Pham/Scale.svg?style=flat)](https://travis-ci.org/Khoa Pham/Scale) Version License Platform Carthage compatible <img src="https://img.shields.io/badge/%20in-swift%203.0-orange.svg">

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Features

Unit

let length = 5.kilometer + 7.meter  // 5007 meter
let weight = 10.0.kilogram * 5.gram // 50000 gram
2.week.to(unit: .hour) // 336 hour

Support

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 more

Notes

Some unit types like Temperature must be converted manually

Installation

Scale is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Scale"

Author

Khoa Pham, onmyway133@gmail.com

License

Scale is available under the MIT license. See the LICENSE file for more info.