diff --git a/Source/Alert/AlertConfig.swift b/Source/Alert/AlertConfig.swift index f7f254f..8eed99d 100644 --- a/Source/Alert/AlertConfig.swift +++ b/Source/Alert/AlertConfig.swift @@ -129,6 +129,8 @@ fileprivate var privUpdateImage: (ProHUD.Alert) -> Void = { vc.imageView.layer.removeAllAnimations() vc.animateLayer = nil vc.animation = nil + + // 移除进度 vc.progressView?.removeFromSuperview() } }() diff --git a/Source/Toast/ToastConfig.swift b/Source/Toast/ToastConfig.swift index 57f8088..f8f3421 100644 --- a/Source/Toast/ToastConfig.swift +++ b/Source/Toast/ToastConfig.swift @@ -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() }