<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/UIHostingOrnament/init(sceneAnchor:contentAlignment:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17UIHostingOrnamentC11sceneAnchor16contentAlignment0G0ACyxGAA9UnitPointV_AA0H0VxyXEtcfc::OverloadGroup"
  },
  "title" : "init(sceneAnchor:contentAlignment:content:)"
}
-->

# init(sceneAnchor:contentAlignment:content:)

Creates an ornament with the specified alignment and content.

```
init(sceneAnchor: UnitPoint, contentAlignment: Alignment = .center, @ContentBuilder content: () -> Content)
```

## Parameters

`sceneAnchor`

The anchor point for aligning the ornament’s content
(based on the `contentAlignment`) with the scene.

`contentAlignment`

The alignment in the ornament used to position it.

`content`

The content of the ornament.

---

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)