<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/JointTransforms/index(before:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15JointTransformsV5index6beforeS2i_tF"
  },
  "title" : "index(before:)"
}
-->

# index(before:)

Returns the position in the sequence of the joint that preceeds the
given position.

```
func index(before i: JointTransforms.Index) -> JointTransforms.Index
```

## Discussion

For more on calculating indices, see
<doc://com.apple.documentation/documentation/Swift/Array/index(before:)>.

---

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)