<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/OrnamentAttachmentAnchor/parent(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24OrnamentAttachmentAnchorV6parentyAcA11UnitPoint3DVFZ"
  },
  "title" : "parent(_:)"
}
-->

# parent(_:)

The anchor point for the ornament expressed as a 3D unit point relative
to its parent.

```
static func parent(_ anchor: UnitPoint3D) -> OrnamentAttachmentAnchor
```

## Discussion

The parent depends on where the ornament modifier is placed. When used
inside another ornament context, that ornament is the parent.
Otherwise, it’s the Scene itself.

---

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)