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

privacySensitive() modifier for SwiftUI in UIHostingController

I want to hide some sensitive information when app is visible in the list of process on iOS.

I observed that privacySensitive() modifier is not working for my app in case when view is embedded in UIHostingController.

I works correctly for pure SwiftUI app.

Can someone confirm this?, any workaround to make it working for my case.

privacySensitive() modifier for SwiftUI in UIHostingController
 
 
Q