Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 5b3ec76

Browse files
authored
keep read layer in front when animating inbox (#2280)
1 parent 21edc71 commit 5b3ec76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/Notifications/NotificationCell.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
149149
readLayer.bounds = readButton.bounds
150150
readLayer.position = convert(readButton.center, from: readButton.superview)
151151
readLayer.transform = CATransform3DMakeScale(20, 20, 20)
152+
// keep the read layer in front
153+
readLayer.superlayer?.addSublayer(readLayer)
152154
CATransaction.commit()
153155
}
154156

@@ -241,6 +243,8 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
241243
self.dimViews(dim: true)
242244
}
243245

246+
// keep the read layer in front
247+
readLayer.superlayer?.addSublayer(readLayer)
244248
hideReadLayer(hide: false)
245249

246250
let scale = CABasicAnimation(keyPath: "transform.scale")

0 commit comments

Comments
 (0)