A Framework for converting and interpreting common measurements used in cooking.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MiseEnPlace.xcodeproj
MiseEnPlace
MiseEnPlaceTests
Resources
Sources
Tests
.gitignore
LICENSE
MiseEnPlace.podspec
Package.swift
README.md

README.md

MiseEnPlace

Version Platform

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.

MiseEnPlace.Measurement.swift

Represents a amount and unit pairing. A MiseEnPlace.Measurement 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.