Contents

UIHostingOrnament

A model that represents an ornament suitable for being hosted in UIKit.

Declaration

class UIHostingOrnament<Content> where Content : View

Overview

Use a UIHostingOrnament when you want to add ornaments to a UIKit view controller. For example, the following adds a single bottom ornament to the current view controller:

self.ornaments = [
    UIHostingOrnament(sceneAnchor: .bottom) {
        OrnamentContent()
    }
]

Topics

Creating a hosting ornament

Setting the alignment

Instance Properties

See Also

Hosting an ornament in UIKit