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