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

[Feature Request] View masking preview for SwiftUI views #4633

Open
amrfarid140 opened this issue Dec 13, 2024 · 1 comment
Open

[Feature Request] View masking preview for SwiftUI views #4633

amrfarid140 opened this issue Dec 13, 2024 · 1 comment

Comments

@amrfarid140
Copy link

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

@amrfarid140 amrfarid140 changed the title View masking preview for SwiftUI views [Feature Request] View masking preview for SwiftUI views Dec 13, 2024
@brustolin
Copy link
Contributor

Thanks for the suggestions, it's a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

2 participants