Skip to content

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

@amrfarid140

Description

@amrfarid140

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

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions