From 74003c03762cc3e6be295dd9e3d8a0986952efbc Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 24 Jun 2020 11:12:42 +0800 Subject: [PATCH] =?UTF-8?q?id=20=E5=8C=85=E5=90=AB=20.rotate=20=E7=9A=84?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=97=8B=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Alert/AlertConfig.swift | 2 ++ Source/Toast/ToastConfig.swift | 5 +++++ 2 files changed, 7 insertions(+) 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() }