mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-07 05:25:12 +00:00
Move ShakeAnimation to Display
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
extension CALayer {
|
||||
func addShakeAnimation(amplitude: CGFloat = 3.0, duration: Double = 0.3, count: Int = 4, decay: Bool = false) {
|
||||
public extension CALayer {
|
||||
public func addShakeAnimation(amplitude: CGFloat = 3.0, duration: Double = 0.3, count: Int = 4, decay: Bool = false) {
|
||||
let k = Float(UIView.animationDurationFactor())
|
||||
var speed: Float = 1.0
|
||||
if k != 0 && k != 1 {
|
||||
Reference in New Issue
Block a user