Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Nov 12, 2024
1 parent b181cd1 commit fcaefd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Sources/Swift/Tools/SentryViewPhotographer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ class SentryViewPhotographer: NSObject, SentryViewScreenshotProvider {
}

@objc(setIgnoreContainerClass:)
func setIgnoreContainerClass(containerClass: AnyClass) {
func setIgnoreContainerClass(_ containerClass: AnyClass) {
redactBuilder.setIgnoreContainerClass(containerClass)
}

@objc(setRedactContainerClass:)
func setRedactContainerClass(containerClass: AnyClass) {
func setRedactContainerClass(_ containerClass: AnyClass) {
redactBuilder.setRedactContainerClass(containerClass)
}

Expand Down
6 changes: 1 addition & 5 deletions Sources/Swift/Tools/UIRedactBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,7 @@ class UIRedactBuilder {
}

private func shouldIgnoreParentContainer(_ view: UIView) -> Bool {
if isRedactContainerClass(type(of: view)) {
return false
}

guard let parent = view.superview else { return false }
guard !isRedactContainerClass(type(of: view)), let parent = view.superview else { return false }
return isIgnoreContainerClass(type(of: parent))
}

Expand Down

0 comments on commit fcaefd2

Please sign in to comment.