All Projects → onmyway133 → Scale

onmyway133 / Scale

Licence: mit
🎏 Unit converter in Swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Scale

Online Markdown
A online markdown converter specially for Wechat Public formatting.
Stars: ✭ 812 (+150.62%)
Mutual labels:  converter, formatter
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (-79.94%)
Mutual labels:  converter, formatter
unicode-formatter
Convert portions of text to fancy text using unicode fonts for use on Twitter and other sites that don't support rich text
Stars: ✭ 31 (-90.43%)
Mutual labels:  converter, formatter
goverter
Generate type-safe Go converters by simply defining an interface
Stars: ✭ 100 (-69.14%)
Mutual labels:  converter
currency edittext
Simple currency formatter for Android EditText
Stars: ✭ 64 (-80.25%)
Mutual labels:  formatter
Modfy.video
A video transcoder and converter built using Web Assembly and FFMPEG to transcode and convert videos right in your browser while protecting your privacy
Stars: ✭ 283 (-12.65%)
Mutual labels:  converter
Prettier Eslint
Code ➡️ prettier ➡️ eslint --fix ➡️ Formatted Code ✨
Stars: ✭ 3,435 (+960.19%)
Mutual labels:  formatter
unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 119 (-63.27%)
Mutual labels:  formatter
Flutter page transition
This is Flutter Page Transition Package
Stars: ✭ 314 (-3.09%)
Mutual labels:  scale
Datavec
ETL Library for Machine Learning - data pipelines, data munging and wrangling
Stars: ✭ 272 (-16.05%)
Mutual labels:  formatter
Musictheory
Universal music theory library for iOS, iPadOS, macOS, tvOS and watchOS in Swift
Stars: ✭ 262 (-19.14%)
Mutual labels:  scale
Kboom
The Kubernetes scale & soak load tester
Stars: ✭ 256 (-20.99%)
Mutual labels:  scale
Dgraph
Native GraphQL Database with graph backend
Stars: ✭ 17,127 (+5186.11%)
Mutual labels:  scale
nordnet-component-kit
Nordnet Component Kit - https://nordnet.github.io/nordnet-component-kit
Stars: ✭ 12 (-96.3%)
Mutual labels:  formatter
React Color Extractor
A React component which extracts colors from an image
Stars: ✭ 314 (-3.09%)
Mutual labels:  converter
CaravanPi
System for measuring and displaying various values in caravans and motor homes, including climate values, filling levels and levelling data. MagicMirror (https://magicmirror.builders/) is used for presentation. A circuit board design is available now
Stars: ✭ 14 (-95.68%)
Mutual labels:  scale
Anyformatkit
Simple text formatting in Swift
Stars: ✭ 296 (-8.64%)
Mutual labels:  formatter
Sqawk
Like Awk but with SQL and table joins
Stars: ✭ 263 (-18.83%)
Mutual labels:  converter
Caffemodel2pytorch
Convert Caffe models to PyTorch
Stars: ✭ 258 (-20.37%)
Mutual labels:  converter
Bankcardformat
💳 自动格式化银行卡号的EditText,卡号格式化、归属银行及卡别判断
Stars: ✭ 273 (-15.74%)
Mutual labels:  formatter

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

Usage

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

Features

Unit

  • Strongly typed unit
  • Division may throw error
  • Operation upon same type, the result is the smaller unit of the two
let length = 5.kilometer + 7.meter  // 5007 meter
let weight = 10.0.kilogram * 5.gram // 50000 gram
  • Convert to any unit of the same type
2.week.to(unit: .hour) // 336 hour

Support

  • Angle
let angle = 5.degree + 2.radian
  • Area
let area = 5.acre + 2.hectare
  • Energy
let energy = 5.joule + 2.watthour
  • Metric
let metric = 5.base + 2.kilo
  • Volume
let volume = 5.liter + 2.gallon
  • Temperature
let temperature = 5.fahrenheit + 2.celsius
  • Time
let time = 5.day + 2.hour
  • Length
let length = 5.yard + 2.meter
  • Weight
let weight = 5.kilogram + 2.pound

Add more

  • Add new definition file with extension .def inside Definitions group
  • Run xcrun swift Script.swift inside Script group
  • Add newly generated files into Output group, target Scale
  • Go into Example and pod install

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, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].