---
title: UIOrnament
framework: swiftui
role: symbol
role_heading: Class
path: swiftui/uiornament
---

# UIOrnament

The abstract base class that represents an ornament.

## Declaration

```swift
class UIOrnament
```

## Overview

Overview You don’t create an instance of this class directly. Instead use UIHostingOrnament when you want to add ornaments to a UIKit view controller.

## Relationships

### Inherited By

- [UIHostingOrnament](swiftui/uihostingornament.md)

## See Also

### Hosting an ornament in UIKit

- [UIHostingOrnament](swiftui/uihostingornament.md)
