Units of Measurement for Fitness
FitnessUnits is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FitnessUnits"
Swift Package Manager:
Swift
dependencies: [
.package(url: "https://github.com/FitnessKit/FitnessUnits", from: "3.1.0"),
]
Swift4
dependencies: [
.package(url: "https://github.com/FitnessKit/FitnessUnits", .branch("swift42")),
]
- UnitAngularVelocity
- UnitForce
- UnitLinearDensity
- UnitMagneticField
- UnitTorque
- UnitAcceleration - Galileo
- UnitAngle - Bradian
- UnitAngle - Milliradian
- UnitAngle - Semicircle
- UnitAngle - Garmin Semicircle (ANT/FIT Files)
- UnitSpeed - metersPerMinute
- UnitSpeed - metersPerHour
- UnitSpeed - kilometersPerSecond
- UnitSpeed - kilometersPerMinute
- UnitSpeed - milesPerSecond
- UnitSpeed - milesPerMinute
- UnitSpeed - speedOfLight
- UnitEnergy - Energy Burn Calculations
- UnitEnergy - MegaJoule
- UnitEnergy - Watt Hour
- UnitEnergy - Electron Volts
- UnitEnergy - British Thermal Units (BTU)
- UnitEnergy - US Therm (thm)
- UnitMass - Mass Calculations
- UnitConcentrationMass - gramsPerDeciliter
- UnitConcentrationMass - gramsPerMilliliter
- UnitConcentrationMass - kilogramsPerMilliliter
- UnitConcentrationMass - milligramsPerLiter
- UnitConcentrationMass - kilogramsPerLiter
- UnitDuration - microsecond
- UnitDuration - millisecond
- UnitDuration - year
- UnitDuration - decade
- UnitCadence - Cadence (RPM, BPM, Steps per min, etc..)
- UnitCount
- UnitGender
- UnitOxygenConsumption - VO2
- UnitPercent
- UnitRadioactivity
- StringMeasurement - Type that holds a
String
value associated with aUnit
- ValidatedMeasurement - Extension of
Measurement
that provides feedback on validity of data. - ValidatedBinaryInteger - BinaryInteger with a validity check
- ValidatedBinaryFloatingPoint - BinaryFloatingPoint with a validity check
- MeasurementZone - Type that bounds values between a upper and lower bounds.
This package is developed and maintained by Kevin A. Hoogheem
FitnessUnits is available under the MIT license