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

Fix landscape read animation issue #2312

Merged
merged 1 commit into from
Oct 19, 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: 2 additions & 2 deletions Classes/Notifications/NotificationCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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")
Expand Down