<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/UIOrnament",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10UIOrnamentC"
  },
  "title" : "UIOrnament"
}
-->

# UIOrnament

The abstract base class that represents an ornament.

```
class UIOrnament
```

## Overview

You don’t create an instance of this class directly. Instead use
[`UIHostingOrnament`](/documentation/SwiftUI/UIHostingOrnament) when you want to add ornaments to a UIKit view
controller.

---

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)