Skip to content

Commit

Permalink
fix name unmask to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Nov 11, 2024
1 parent 2e07b93 commit a2a3309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Swift/Tools/UIRedactBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ class UIRedactBuilder {

private func shouldIgnore(view: UIView) -> Bool {

return SentryRedactViewHelper.shouldUnmask(view) || containsIgnoreClass(type(of: view)) || isParentUnmaskWrapper(view)
return SentryRedactViewHelper.shouldUnmask(view) || containsIgnoreClass(type(of: view)) || isParentIgnoreWrapper(view)
}

private func isParentUnmaskWrapper(_ view: UIView) -> Bool {
private func isParentIgnoreWrapper(_ view: UIView) -> Bool {
let parent = view.superview
if let parent = parent {
return isIgnoreWrapperClass(type(of: parent))
Expand Down

0 comments on commit a2a3309

Please sign in to comment.