---
title: visionPrescriptionType()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkobjecttype/visionprescriptiontype()
---

# visionPrescriptionType()

Returns a shared vision prescription type object.

## Declaration

```swift
class func visionPrescriptionType() -> HKPrescriptionType
```

## Discussion

Discussion 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.
