A lightweight library for converting between units.
let inch = 1.inch
let converted = inch.to(.millimeter) // 25.4
To install it, simply add the following line to your Cartfile:
github "danielbyon/Convert"
Then run carthage update
.
Follow the current instructions in Carthage's README for up to date installation instructions.
Download all the source files and drop them into your project.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8 (Swift 3.1)
This project is licensed under the MIT License.