Swiftpack.co - danielbyon/Convert as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by danielbyon.
danielbyon/Convert 4.0.1
A lightweight library for converting between units.
⭐️ 1
🕓 1 year ago
.package(url: "https://github.com/danielbyon/Convert.git", from: "4.0.1")

Convert

Carthage Compatible Swift 3.1 Platforms License MIT

A lightweight library for converting between units.

Usage

let inch = 1.inch

let converted = inch.to(.millimeter) // 25.4

Installation

Carthage

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.

Manually

Download all the source files and drop them into your project.

Requirements

  • iOS 8.0+
  • macOS 10.10+
  • tvOS 9.0+
  • watchOS 2.0+
  • Xcode 8 (Swift 3.1)

License

This project is licensed under the MIT License.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics