mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-01-12 22:47:34 +08:00
fix landscape read animation issue (#2312)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user