Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

RealityView in UIHostingController/UIKit transparency

I'm experimenting with RealityView in the UI of an AUv3 plug-in. The plug-in UI is implemented in a UIKitViewController with a UIHostingController hosting a RealityView. When i run the standalone app on visionOS I want the background to be transparent, and the reality view content. how can i achieve that? I've tried turning off opaque in many views and and setting background colors to .clear.

Accepted Answer
- (UIContainerBackgroundStyle) preferredContainerBackgroundStyle
{
  return UIContainerBackgroundStyleHidden;
}

on my hosting app's View Controller did the trick

RealityView in UIHostingController/UIKit transparency
 
 
Q