init(_:)
Creates a quantity type using the provided identifier.
Declaration
convenience init(_ identifier: HKQuantityTypeIdentifier)Parameters
- identifier:
An identifier that specifies the type of data to store in the sample. For a complete list of quantity type identifiers, see Hkquantitytypeidentifier.