This sample app creates 2D and 3D views with various frameworks and places them in an immersive space. It shows how to use attachments to place them relative to each other to build a 3D rainbow.
For more information about the app and how it works, see [Combining 2D and 3D views in an immersive app] (https://developer.apple.com/documentation/realitykit/combining_2d_and_3d_views_in_an_immersive_app).