HKQuantity

class HKQuantity : NSObject, NSSecureCoding, NSCopying
  • Returns a FHIR Quantity element with the given unit, if the quantity can be represented in that unit.

    Declaration

    Swift

    public func c3_asFHIRQuantityInUnit(_ unit: HKUnit) throws -> Quantity

    Parameters

    unit

    The unit to use

    Return Value

    A Quantity instance on success