id 包含 .rotate 的会自动旋转

This commit is contained in:
xaoxuu 2020-06-24 11:12:42 +08:00
parent ad3576cf6f
commit 74003c0376
2 changed files with 7 additions and 0 deletions

View File

@ -129,6 +129,8 @@ fileprivate var privUpdateImage: (ProHUD.Alert) -> Void = {
vc.imageView.layer.removeAllAnimations()
vc.animateLayer = nil
vc.animation = nil
//
vc.progressView?.removeFromSuperview()
}
}()

View File

@ -116,6 +116,11 @@ fileprivate var privReloadData: (ProHUD.Toast) -> Void = {
//
vc.vm.updateDuration()
// id .rotate
if vc.vm.scene.identifier.contains(".rotate") {
vc.startRotate()
}
//
vc.progressView?.removeFromSuperview()
}