-
-
Notifications
You must be signed in to change notification settings - Fork 346
[Feature Request] View masking preview for SwiftUI views #4633
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
Comments
Thanks for the suggestions, it's a good idea. |
We can provide a way to somehow highlight the masked views with a background color, overlay color, or something so users can easily see which views get masked. |
I believe this is implemented as the view modifier We are updating our documentation in getsentry/sentry-docs#12517. I'll close this issue for now, if there are any concerns please feel free to reopen. |
Problem Statement
I am integrating Session Replay in a SwiftUI based app with some custom masking rules. Each time I need to check how the view is masked, I have to run the app, wait for the session to appear on sentry, scroll the video to find my target screen and finally check the masking. Repeat until I've got it right.
This is very tedious to do and is error-prone.
Solution Brainstorm
Add a SwiftUI view modifier
sentryMaskPreview
that can be used to render a masked view in previews.Are you willing to submit a PR?
Maybe
The text was updated successfully, but these errors were encountered: