Skip to content

Commit

Permalink
Update UIRedactBuilder.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Sep 17, 2024
1 parent a8a39c2 commit 57a9d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Swift/Tools/UIRedactBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class UIRedactBuilder {
/// The beginning will be added after all the subviews have been mapped.
redacting.append(RedactRegion(size: layer.bounds.size, transform: newTransform, type: .clipEnd))
}
for subview in view.subviews {
for subview in view.subviews.sorted(by: { $0.layer.zPosition < $1.layer.zPosition }) {
mapRedactRegion(fromView: subview, redacting: &redacting, rootFrame: rootFrame, transform: newTransform, forceRedact: enforceRedact)
}
if view.clipsToBounds {
Expand Down

0 comments on commit 57a9d0c

Please sign in to comment.