mirror of https://github.com/xaoxuu/ProHUD
更新时移除动画
This commit is contained in:
parent
74003c0376
commit
76fdad3289
|
@ -126,7 +126,8 @@ fileprivate var privUpdateImage: (ProHUD.Alert) -> Void = {
|
|||
mk.width.equalTo(config.iconSize.width)
|
||||
mk.height.equalTo(config.iconSize.height)
|
||||
}
|
||||
vc.imageView.layer.removeAllAnimations()
|
||||
// 移除动画
|
||||
vc.stopRotate(vc.animateLayer)
|
||||
vc.animateLayer = nil
|
||||
vc.animation = nil
|
||||
|
||||
|
|
|
@ -116,12 +116,18 @@ fileprivate var privReloadData: (ProHUD.Toast) -> Void = {
|
|||
// 设置持续时间
|
||||
vc.vm.updateDuration()
|
||||
|
||||
// 移除动画
|
||||
vc.stopRotate(vc.animateLayer)
|
||||
vc.animateLayer = nil
|
||||
vc.animation = nil
|
||||
|
||||
// 移除进度
|
||||
vc.progressView?.removeFromSuperview()
|
||||
|
||||
// id 包含 .rotate 的会自动旋转
|
||||
if vc.vm.scene.identifier.contains(".rotate") {
|
||||
vc.startRotate()
|
||||
}
|
||||
// 移除进度
|
||||
vc.progressView?.removeFromSuperview()
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue