|
@@ -127,10 +127,10 @@ public extension UIView {
|
|
|
|
|
|
/// 活动心跳动画
|
|
|
/// - Returns: <#description#>
|
|
|
- func activityHeartbeatAnimate() {
|
|
|
+ func activityHeartbeatAnimate(scaleX:CGFloat = 0.9,scaleY:CGFloat = 0.9) {
|
|
|
layer.removeAllAnimations()
|
|
|
UIView.animateKeyframes(withDuration: 0.45, delay: 0, options: .allowUserInteraction, animations: {
|
|
|
- self.transform = CGAffineTransform(scaleX: 0.9, y: 0.9)
|
|
|
+ self.transform = CGAffineTransform(scaleX: scaleX, y: scaleY)
|
|
|
}) { _ in
|
|
|
UIView.animateKeyframes(withDuration: 0.45, delay: 0, options: .allowUserInteraction, animations: {
|
|
|
self.transform = .identity
|