<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/IKComponent/Solver/maxIterations",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation11IKComponentV6SolverC13maxIterationsSivp"
  },
  "title" : "maxIterations"
}
-->

# maxIterations

The maximum number of iterations the solver is allowed to do per frame.

```
var maxIterations: Int { get set }
```

## Discussion

If the pose satisfies all of the demands using less iterations, the solve stops early.

The initial value is from the respective [`maxIterations`](/documentation/RealityKit/IKRig/maxIterations).

> Note: Values of `0` or less, result in the constant output of the last solved pose.

---

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)