Skip to content

Commit

Permalink
Update UIRedactBuilder.swift
Browse files Browse the repository at this point in the history
brustolin committed Sep 11, 2024
1 parent 1b5790f commit ee68606
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Swift/Tools/UIRedactBuilder.swift
Original file line number Diff line number Diff line change
@@ -183,8 +183,7 @@ class UIRedactBuilder {
Indicates whether the view is opaque and will block other view behind it
*/
private func isOpaque(_ view: UIView) -> Bool {
//Anything with an alpha greater than 0.9 is opaque enough that it's impossible to see anything behind it.
return view.alpha > 0.9 && view.backgroundColor != nil && (view.backgroundColor?.cgColor.alpha ?? 0) > 0.9
return view.alpha == 1 && view.backgroundColor != nil && (view.backgroundColor?.cgColor.alpha ?? 0) == 1
}
}

0 comments on commit ee68606

Please sign in to comment.