Ios swift – Custom units in HKUnit for simple measurements like mass, length, and volume
HKQuantity and HKUnit support all of the common units of measurement, SI and otherwise, such as gram(), pound(), and stone(). The HealthKit classes also support custom complex units such as "foot-pound", "meters-per-second", or "meters-per-second-squared" via unitMultiplied(by:), unitDivided(by:), and unitRaised(toPower:) The…