Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB15638219: Expose an option to hide .privacySensitive() views from screenshots #578

Open
samhenrigold opened this issue Oct 31, 2024 · 0 comments

Comments

@samhenrigold
Copy link

  • Date: 2024-10-30
  • Resolution: Open
  • Area: SwiftUI
  • OS: iPadOS
  • Type: Suggestion

Description

I’m developing a financial app and would like to create a “Hide sensitive information in screenshots” setting. The idea is that, if they’re submitting feedback about the app, they don’t have to redact info like their account balance. There’s no way to do this currently, since I’m only alerted to screenshots after the fact. It would make the most sense for this to be tied into the privacySensitive modifier.

Note to the reader of this GitHub issue

I didn’t share this with Apple, but you can currently do this with the undocumented disableUpdateMask property on a view’s CALayer. Which makes doing this in SwiftUI more of a pain, but it’s certainly possible: https://nsantoine.dev/posts/CALayerCaptureHiding/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant