Closed mariedm closed 1 month ago
Branch report: RUM-6224-create-overrides
Commit report: b8c9942
Test service: dd-sdk-ios
:white_check_mark: 0 Failed, 3478 Passed, 0 Skipped, 2m 17.87s Total Time :small_red_triangle_down: Test Sessions change in coverage: 3 decreased, 5 increased, 6 no change
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