<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKAppleWalkingSteadinessClassificationForQuantity",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@F@HKAppleWalkingSteadinessClassificationForQuantity"
  },
  "title" : "HKAppleWalkingSteadinessClassificationForQuantity"
}
-->

# HKAppleWalkingSteadinessClassificationForQuantity

Provides a classification for a score that measures the steadiness of the user’s gait.

```
extern BOOL HKAppleWalkingSteadinessClassificationForQuantity(HKQuantity *value, HKAppleWalkingSteadinessClassification *classificationOut, NSError **errorOut);
```

## Parameters

`value`

An [`HKQuantity`](/documentation/HealthKit/HKQuantity) instance that contains a percentage value between `0.0` and `1.0`. Use the [`HKUnit`](/documentation/HealthKit/HKUnit) class’s [`percent()`](/documentation/HealthKit/HKUnit/percent()) method to define the units for these values.

`classificationOut`

A [`HKAppleWalkingSteadinessClassificationForQuantity`](/documentation/HealthKit/HKAppleWalkingSteadinessClassificationForQuantity) reference, which the method sets if the classification is successful.

`errorOut`

A <doc://com.apple.documentation/documentation/Foundation/NSError> reference, which the method sets if it can’t convert the `value` parameter into a classification. You can pass `nil` if you don’t want to receive error information.

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if the method successfully classified the value. If an error occurred, it returns <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Use this method to get the Walking Steadiness classification for an [`appleWalkingSteadiness`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleWalkingSteadiness) sample.

---

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)