From 521ca10fbf2f02ef3772c187432e86edcaa7d25f Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 2 Jan 2024 08:39:51 -0600 Subject: [PATCH] ONEAPP-6239 - Loader doesn't cancel 60 second timer on deallocation. Signed-off-by: Matt Bruce --- VDS/Components/Loader/Loader.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VDS/Components/Loader/Loader.swift b/VDS/Components/Loader/Loader.swift index f1f99cc9..234246b0 100644 --- a/VDS/Components/Loader/Loader.swift +++ b/VDS/Components/Loader/Loader.swift @@ -119,6 +119,10 @@ open class Loader: View { loadingTimer?.invalidate() loadingTimer = nil } + + deinit { + stopAnimating() + } } extension Icon.Name {