fix landscape read animation issue (#2312)

This commit is contained in:
Ryan Nystrom
2018-10-18 21:34:28 -04:00
committed by GitHub
parent 71e0fcd74f
commit b8552a98c5

View File

@@ -148,7 +148,7 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
readLayer.path = UIBezierPath(ovalIn: readButton.bounds).cgPath
readLayer.bounds = readButton.bounds
readLayer.position = convert(readButton.center, from: readButton.superview)
readLayer.transform = CATransform3DMakeScale(20, 20, 20)
readLayer.transform = CATransform3DMakeScale(30, 30, 30)
// keep the read layer in front
readLayer.superlayer?.addSublayer(readLayer)
CATransaction.commit()
@@ -249,7 +249,7 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
let scale = CABasicAnimation(keyPath: "transform.scale")
scale.fromValue = 1
scale.duration = 0.27
scale.duration = 0.33
scale.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
let fade = CABasicAnimation(keyPath: "opacity")