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

# EntityGeometricPins

A structure that wraps all geometric pins an entity owns.

```
@MainActor struct EntityGeometricPins
```

## Overview

Access an instance of this structure through the entity property [`pins`](/documentation/RealityKit/Entity/pins).

## Topics

### Structures

[`struct Iterator`](/documentation/RealityKit/EntityGeometricPins/Iterator)

An object to iterate over all geometric pins in the collection.

### Instance Properties

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

The total number of pins.

[`let entity: Entity`](/documentation/RealityKit/EntityGeometricPins/entity)

The entity where the local frame lives.

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

A Boolean value indicating whether the collection is empty.

### Instance Methods

[`func makeIterator() -> EntityGeometricPins.Iterator`](/documentation/RealityKit/EntityGeometricPins/makeIterator())

Returns an iterator for the sequence.

[`func remove(named: String)`](/documentation/RealityKit/EntityGeometricPins/remove(named:))

Removes a geometric pin with the given name from this entity.

[`func set(named: String, position: SIMD3<Float>, orientation: simd_quatf) -> GeometricPin`](/documentation/RealityKit/EntityGeometricPins/set(named:position:orientation:))

Creates and adds a geometric pin to the entity, and returns the entity geometric pin.

[`func set(named: String, position: SIMD3<Float>, orientation: simd_quatf, relativeTo: Entity?) -> GeometricPin`](/documentation/RealityKit/EntityGeometricPins/set(named:position:orientation:relativeTo:))

Creates and adds a geometric pin to the entity, and returns the entity geometric pin.

[`func set(named: String, skeletalJointName: String, position: SIMD3<Float>, orientation: simd_quatf) -> GeometricPin`](/documentation/RealityKit/EntityGeometricPins/set(named:skeletalJointName:position:orientation:))

Creates and adds a geometric pin to the entity’s skeletal joint, and returns the geometric pin.

### Subscripts

[`subscript(String) -> GeometricPin?`](/documentation/RealityKit/EntityGeometricPins/subscript(_:))

Obtains a geometric pin the entity owns by name.

### Type Aliases

[`typealias Element`](/documentation/RealityKit/EntityGeometricPins/Element)

An individual pin in the collection.

## Relationships

### Conforms To

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

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

[`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)