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

Keep read layer in front when animating inbox #2280

Merged
merged 1 commit into from
Oct 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Classes/Notifications/NotificationCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
readLayer.bounds = readButton.bounds
readLayer.position = convert(readButton.center, from: readButton.superview)
readLayer.transform = CATransform3DMakeScale(20, 20, 20)
// keep the read layer in front
readLayer.superlayer?.addSublayer(readLayer)
CATransaction.commit()
}

Expand Down Expand Up @@ -241,6 +243,8 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
self.dimViews(dim: true)
}

// keep the read layer in front
readLayer.superlayer?.addSublayer(readLayer)
hideReadLayer(hide: false)

let scale = CABasicAnimation(keyPath: "transform.scale")
Expand Down