init(from:)
Converts a length formatter enumeration value into a corresponding HealthKit object.
Declaration
convenience init(from lengthFormatterUnit: LengthFormatter.Unit)Parameters
- lengthFormatterUnit:
A valid length formatter unit value. For a list of possible length formatter unit values, see Unit.
Return Value
A HealthKit unit object, or nil if the unit parameter is not a valid length formatter unit value.