From 49777d8834552e4b6ec427bfb8a1ba2e98db777e Mon Sep 17 00:00:00 2001 From: Peter <> Date: Fri, 2 Aug 2019 02:16:04 +0300 Subject: [PATCH] Move ShakeAnimation to Display --- .../TelegramUI => Display/Display}/ShakeAnimation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename submodules/{TelegramUI/TelegramUI => Display/Display}/ShakeAnimation.swift (89%) diff --git a/submodules/TelegramUI/TelegramUI/ShakeAnimation.swift b/submodules/Display/Display/ShakeAnimation.swift similarity index 89% rename from submodules/TelegramUI/TelegramUI/ShakeAnimation.swift rename to submodules/Display/Display/ShakeAnimation.swift index 75ef6b0d6f..1e36696312 100644 --- a/submodules/TelegramUI/TelegramUI/ShakeAnimation.swift +++ b/submodules/Display/Display/ShakeAnimation.swift @@ -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 {