<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARAnchor/init(name:transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARAnchor(im)initWithName:transform:"
  },
  "title" : "init(name:transform:)"
}
-->

# init(name:transform:)

Creates a new anchor object with the specified transform and a descriptive name.

```
init(name: String, transform: simd_float4x4)
```

## Parameters

`name`

A descriptive name for the anchor. ARKit does not display the name to users, but your app can use it to identify anchors for debugging.

`transform`

A matrix encoding the position, orientation, and scale of the anchor relative to the world coordinate space of the AR session the anchor is placed in.

## Discussion

World coordinate space in ARKit always follows a right-handed convention, but is oriented based on the session configuration. For details, see [Understanding World Tracking](/documentation/ARKit/understanding-world-tracking).

## Discussion

Use the [`add(anchor:)`](/documentation/ARKit/ARSession/add(anchor:)) method to begin tracking your custom anchor in an AR session.

---

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)