visionPrescriptionType()
Returns a shared vision prescription type object.
Declaration
class func visionPrescriptionType() -> HKPrescriptionTypeDiscussion
This method returns an instance of the HKPrescriptionType concrete subclass. Use a prescription type to request permission to read or write prescriptions from the HealthKit store., and to create samples that store prescription information. In HealthKit, all prescriptions use the same HKPrescriptionType instance.