Skip to content

materik/cocoapod-unitility

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published