<!--
{
  "availability" : [
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMMovementDisorderManager/version()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Motion"
    ],
    "preciseIdentifier" : "c:objc(cs)CMMovementDisorderManager(cm)version"
  },
  "title" : "version()"
}
-->

# version()

Returns a string that describes the movement disorder algorithm’s current version.

```
class func version() -> String?
```

## Discussion

Use this method to determine the algorithm used by the movement disorder manager. If the current device supports gathering movement disorder data, this method returns a string with the version number in `<major>.<minor>.<fix>` format. It returns `nil` anytime [`isAvailable()`](/documentation/CoreMotion/CMMovementDisorderManager/isAvailable()) returns <doc://com.apple.documentation/documentation/Swift/false>. For information about the current version, see [Movement disorder algorithm changelog](/documentation/CoreMotion/movement-disorder-algorithm-changelog).

> Important:
> Your app uses the version of the algorithm provided by the current operating system running on the device. This means the algorithm your app uses might change, without requiring you to rebuild and resubmit your app.

To set up tests that notify you when the version changes, create a unit test that checks the current version against the expected value. You can then use continuous integration to automatically monitor this value with each new release.

```swift
func testForVersionChange() throws {
    let expectedVersion = "1.0.0"
    let currentVersion = CMMovementDisorderManager.version()
    XCTAssertEqual(expectedVersion, currentVersion, "*** The version has changes to \(String(describing: currentVersion)). ***")
}
```

---

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)