| 1234567891011121314151617181920212223242526 |
- //
- // HKUnit.swift
- // OmniBLE
- //
- // Created by Nathan Racklyeft on 1/17/16.
- // Copyright © 2016 Nathan Racklyeft. All rights reserved.
- //
- import HealthKit
- extension HKUnit {
- static let milligramsPerDeciliter: HKUnit = {
- return HKUnit.gramUnit(with: .milli).unitDivided(by: .literUnit(with: .deci))
- }()
- static let millimolesPerLiter: HKUnit = {
- return HKUnit.moleUnit(with: .milli, molarMass: HKUnitMolarMassBloodGlucose).unitDivided(by: .liter())
- }()
- static let internationalUnitsPerHour: HKUnit = {
- return HKUnit.internationalUnit().unitDivided(by: .hour())
- }()
- }
|