Unitility 0.7.0

Unitility 0.7.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2016

Maintained by Mattias Eriksson.



Unitility 0.7.0

  • By
  • Mattias Eriksson

Easy to use and understand pod for storing, formatting and converting units of different measurements.

Install

pod 'Unitility'

Swift (Default)

pod 'Unitility/Swift'

Objective-C

pod 'Unitility/ObjC'

Example

import Unitility

let m = Meter(5.2)
let f = m.convertToFoot()
print(f.formatted()) // 17.06 ft
#import <Unitility/Length.h>

Meter *m = [Meter value:5.2f];
Foot *f = [m convertToFoot];
NSLog(@"%@", [f formatted]); // 17.06 ft

Supported Units

Length

  • Centimeter
  • Foot (working on Swift support)
  • Inch (working on Swift support)
  • Meter

Pressure (working on Swift support)

  • Bar
  • Hectopascal
  • Millibar
  • Millimeter of Mercury
  • Pascal

Speed (working on Swift support)

  • Kilometer/Hour
  • Knot
  • Meter/Second
  • Mile/Hour

Temperature (working on Swift support)

  • Celcius
  • Farenheit
  • Kelvin

Weight (working on Swift support)

  • Gram
  • Kilogram
  • Ounce
  • Pound

Notes

  • Working on adding more units and measurements
  • Accepting Issues and Pull Requests