<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothSimulationComponent/Solver-swift.struct/gaussSeidel(iterationCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C19SimulationComponentV6SolverV11gaussSeidel14iterationCountAESi_tFZ"
  },
  "title" : "gaussSeidel(iterationCount:)"
}
-->

# gaussSeidel(iterationCount:)

Gauss-Seidel solver for a cloth simulation.

```
static func gaussSeidel(iterationCount: Int = 1) -> ClothSimulationComponent.Solver
```

## Parameters

`iterationCount`

The number of solver iterations to perform per time step.

## Return Value

A Gauss-Seidel solver configuration.

## Discussion

This is the default solver.
It provides the best trade-off between accuracy and performance in most cases.

---

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)