更新时移除动画

This commit is contained in:
xaoxuu 2020-06-24 11:28:54 +08:00
parent 74003c0376
commit 76fdad3289
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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()
}