<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARSkeletonDefinition/index(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:So20ARSkeletonDefinitionC5ARKitE5index3forSiSo0A9JointNamea_tF"
  },
  "title" : "index(for:)"
}
-->

# index(for:)

Returns the index for a given joint identifier.

```
@nonobjc func index(for jointName: ARSkeleton.JointName) -> Int
```

## Discussion

This function returns `NSNotFound` if an invalid joint name is passed in.

---

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)