RUM-6224 [Session Replay FGM] Create privacy overrides #2058
+412
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What and why?
This PR introduces the ability to override Session Replay's fine-grained privacy settings (text and input, images, touches) at the view level. This allows customers to apply specific privacy levels to specific views, overriding the global privacy configuration, enabling customers to control masking at a more granular level.
A new
HiddenPrivacyLevel
is also introduced, which, when applied to a view, will replace the view with an opaque wireframe and prevent any interactions or subviews from being recorded. This privacy level is only available as an override and takes precedence over other privacy settings.How?
HiddenPrivacyLevel
enumSessionReplayOverride
struct to encapsulate all overrideable privacy settingsUIView
to accessSessionReplayOverride
via the.dd.sessionReplayOverride
propertynil
values in SwiftNote: This PR only creates the new properties; the logic to apply the overrides will follow in another PR.
Review checklist