---
title: "pascalUnit(with:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hkunit/pascalunit(with:)"
---

# pascalUnit(with:)

Returns a HealthKit unit for measuring pressure, using pascal units with the provided prefix.

## Declaration

```swift
class func pascalUnit(with prefix: HKMetricPrefix) -> Self
```

## Parameters

- `prefix`: A valid metric prefix value. For the complete list of prefix values, see doc://com.apple.healthkit/documentation/HealthKit/HKMetricPrefix.

## Return Value

Return Value A HealthKit unit for measuring pressure based on pascals and the provided prefix.

## See Also

### Constructing pressure units

- [pascal()](healthkit/hkunit/pascal().md)
- [millimeterOfMercury()](healthkit/hkunit/millimeterofmercury().md)
- [inchesOfMercury()](healthkit/hkunit/inchesofmercury().md)
- [centimeterOfWater()](healthkit/hkunit/centimeterofwater().md)
- [atmosphere()](healthkit/hkunit/atmosphere().md)
- [decibelAWeightedSoundPressureLevel()](healthkit/hkunit/decibelaweightedsoundpressurelevel().md)
