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.

Answered by olilarkin in 836794022
- (UIContainerBackgroundStyle) preferredContainerBackgroundStyle
{
  return UIContainerBackgroundStyleHidden;
}

on my hosting app's View Controller did the trick

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

on my hosting app's View Controller did the trick