How to add an ornament to a window or volume in VisionOS

Oscar de la Hera Gomez
A flower that represents VisionOS with the text “Ornaments” beneath it.

Create an ornament view and in the app, add the ornament to a view within a window group.

The code for this tutorial can be found in the repository linked below on the 101/window-ornaments branch.

Please note that the example provided demonstrates the proof of concept through a window, but the same process could be used to add an ornament to a volume.

Step One: Create the Ornament

A screenshot of Xcode showing a SwiftUI view for an ornament. 

Create a SwiftUI view for the ornament.

Step Two: Add the Ornament to a View

A screenshot of XCode showing the VisionOS App showing how we add an ornament to a window or volume.

In the VisionOS App, add the ornament to a view within a window group.

Step Three: Test

A screenshot of the simulator showing an ornament on a window.

Run the app in the simulator and make sure everything works as expected.

Looking to learn more about VisionOS, Spatial Computing, Design and Technology?

Search our blog to learn more about visionOS, spatial computing, design and technology.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details