Quantcast
Channel: How to set UIHostingController's background color to clear? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Dávid Pásztor for How to set UIHostingController's background color...

If you are using a UIHostingController, you need to set the backgroundColor property of its view to .clear as well.yourHostingController.view.backgroundColor = .clear

View Article



How to set UIHostingController's background color to clear?

I need to be able to see through my SwiftUI Views as well as the UIHosting Controller presenting them in order to see a background image underneath them. The code below still shows a white rectangle...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images