This commit is contained in:
xaoxuu 2023-08-29 14:03:32 +08:00
parent 691b5c7341
commit 17b46e7ed9
1 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ open class BaseViewModel: NSObject, HUDViewModelType {
/// ///
@objc open var icon: UIImage? @objc open var icon: UIImage?
@objc var iconURL: URL? @objc open var iconURL: URL?
/// ///
open var rotation: Rotation? open var rotation: Rotation?
@ -183,7 +183,6 @@ extension BaseViewModel {
// MARK: countdown // MARK: countdown
public func countdown(seconds: TimeInterval, onUpdate: ((_ progress: TimeProgress) -> Void)?, onCompletion: (() -> Void)?) { public func countdown(seconds: TimeInterval, onUpdate: ((_ progress: TimeProgress) -> Void)?, onCompletion: (() -> Void)?) {
guard let vc = vc as? LoadingAnimation else { return }
guard seconds > 0 else { guard seconds > 0 else {
// stop countdown // stop countdown
self.progress = nil self.progress = nil