---
title: "init(sphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkglasseslensspecification/init(sphere:cylinder:axis:addpower:vertexdistance:prism:farpupillarydistance:nearpupillarydistance:)"
---

# init(sphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:)

Creates a new glasses lens specification, containing the prescription data for one eye.

## Declaration

```swift
init(sphere: HKQuantity, cylinder: HKQuantity?, axis: HKQuantity?, addPower: HKQuantity?, vertexDistance: HKQuantity?, prism: HKVisionPrism?, farPupillaryDistance: HKQuantity?, nearPupillaryDistance: HKQuantity?)
```

## Parameters

- `sphere`: The correction for farsightedness, measured in doc://com.apple.healthkit/documentation/HealthKit/HKUnit/diopter() units. The range is -10.5 to +6.5.
- `cylinder`: Part of the correction for astigmatism. This property measures the strength of the correction in doc://com.apple.healthkit/documentation/HealthKit/HKUnit/diopter() units. The range is -3.0 to 3.0.
- `axis`: Part of the correction for astigmatism. This property measures the orientation of the correction in doc://com.apple.healthkit/documentation/HealthKit/HKUnit/degreeAngle() units.
- `addPower`: The correction for nearsightedness, measured in doc://com.apple.healthkit/documentation/HealthKit/HKUnit/diopter() units. The range is from 0.25 to 2.5. The right and left eyes should have the same value.
- `vertexDistance`: The distance between the back of the lens and the eye, measured in mm. The range is 12 to 14 mm.
- `prism`: An object that contains information about the correction for eye alignment. For more information, see doc://com.apple.healthkit/documentation/HealthKit/HKVisionPrism.
- `farPupillaryDistance`: The distance between the pupil and the center of the nose when looking at an object far away, measured in mm.
- `nearPupillaryDistance`: The distance between the pupil and the center of the nose when looking at a nearby object, measured in mm.
