<!--
{
  "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/SolverCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation11IKComponentV16SolverCollectionV"
  },
  "title" : "IKComponent.SolverCollection"
}
-->

# IKComponent.SolverCollection

Ordered dictionary like container with fixed size.

```
struct SolverCollection
```

## Overview

Supports subscripting by index, element’s identifier or element’s name.

## Topics

### Instance Properties

[`var count: Int`](/documentation/RealityKit/IKComponent/SolverCollection/count)

The number of elements in the collection.

[`var isEmpty: Bool`](/documentation/RealityKit/IKComponent/SolverCollection/isEmpty)

A Boolean value indicating whether the collection is empty.

### Instance Methods

[`func contains(IKComponent.SolverCollection.Element.ID) -> Bool`](/documentation/RealityKit/IKComponent/SolverCollection/contains(_:))

Returns a Boolean value that indicates whether the collection contains an element with a specific identifier.

[`func set(IKComponent.SolverCollection.Element) -> IKComponent.SolverCollection.Element?`](/documentation/RealityKit/IKComponent/SolverCollection/set(_:))

Updates the element with identifier matching the new value.

### Subscripts

[`subscript(IKComponent.SolverCollection.Element.ID) -> IKComponent.SolverCollection.Element?`](/documentation/RealityKit/IKComponent/SolverCollection/subscript(_:))

Accesses the element with the specified identifier.

## Relationships

### Conforms To

[`Collection`](/documentation/Swift/Collection)

[`Sequence`](/documentation/Swift/Sequence)

---

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)