MiseEnPlace 4.2.1

MiseEnPlace 4.2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Richard Piazza.


Downloads

Total434
Week0
Month0

Installs

Apps3
Test Targets5
powered by Segment

GitHub

Stars1
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files14
LOCLines of Code 1,179


A Framework for converting and interpreting common measurements used in cooking.

MeasurementUnit.swift

The MeasurementUnit enum is the heart of the MiseEnPlace framework. This enum represents some unit of measure, along with MeasurementSystem and MeasurementMethod that it belongs to.

All of the logic for how and when to convert to other units and amounts is contained within the enum.

MeasurementMethod.swift

The MeasurementMethod represents the ways in which something can be measured. In the case of the MiseEnPlace framework, this means Volume and Mass.

MeasurementSystem.swift

Similar to the MeasurementMethod the MeasurementSystem enum represents the types of unit systems that can be used. Currently only US and Metric are supported.

MeasurementSystemMethod.swift

The MeasurementSystemMethod represents the ways MeasurementMethods and MeasurementSystems can be combined.

Convertable.swift

The Convertable protocol defines the properties needed to be able to perform conversion and translation. An extension to the protocol offers many important methods for scaling a measurement based on it's ratio.

CookingMeasurement.swift

Represents a amount and unit pairing. A CookingMeasurement has several key properties and functions for tranlating human-readable strings.

Ratio.swift

A defined relationship between volume and weight.

Double+MiseEnPlace.swift

An extension to Double with functions for determining value quality and converting one amount to another within the same MeasurementSystemMethod.

Fraction.swift

An enum with fraction values used within the MiseEnPlace framework.

Intergral.swift

An enum with common intergral values. This is primarily used for the iOS MeasurementInputView.