<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKGlassesLensSpecification/init(sphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKGlassesLensSpecification(im)initWithSphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:"
  },
  "title" : "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.

```
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 [`diopter()`](/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 [`diopter()`](/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 [`degreeAngle()`](/documentation/HealthKit/HKUnit/degreeAngle()) units.

`addPower`

The correction for nearsightedness, measured in [`diopter()`](/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 [`HKVisionPrism`](/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)