HealthSampleMeasurement
public struct HealthSampleMeasurement<MeasurementType> where MeasurementType : HealthMeasurementTypeextension HealthSampleMeasurement: EncodableA value that can be logged to the Health app.
See
See Also:LogHealthSample
- 
                  
                  The unit of the Health sample. DeclarationSwift public var unit: HealthSampleUnit<MeasurementType>
- 
                  
                  Initializes the value. DeclarationSwift public init(magnitude: Text, unit: HealthSampleUnit<MeasurementType>)ParametersmagnitudeThe size of the health sample. unitThe unit of the health sample. 
- 
                  
                  Initializes the value. DeclarationSwift public init(magnitude: Variable, unit: HealthSampleUnit<MeasurementType>)ParametersmagnitudeThe size of the health sample, as a Variable.unitThe unit of the health sample. 
- 
                  
                  Encodes this value into the given encoder. Throws This function throws an error if any values are invalid for the given encoder’s format.DeclarationSwift public func encode(to encoder: Encoder) throwsParametersencoderThe encoder to write data to. 
 View on GitHub
View on GitHub HealthSampleMeasurement Structure Reference
        HealthSampleMeasurement Structure Reference