From edcaadf2748afce334780c816cad8c1549dceb7e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 6 Dec 2022 15:58:05 -0600 Subject: [PATCH] enforced animation back from highlight Signed-off-by: Matt Bruce --- VDS/Components/Buttons/Button/ButtonBase.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Buttons/Button/ButtonBase.swift b/VDS/Components/Buttons/Button/ButtonBase.swift index 121ae8f6..005c542a 100644 --- a/VDS/Components/Buttons/Button/ButtonBase.swift +++ b/VDS/Components/Buttons/Button/ButtonBase.swift @@ -53,8 +53,10 @@ open class ButtonBase: UIButton, Buttonable, Handlerable, ViewProtocol, Resettab self?.updateView() }) { [weak self] _ in //you update the view since this is typically a quick change - self?.updateView() - self?.isHighlightAnimating = false + UIView.animate(withDuration: 0.1, animations: { [weak self] in + self?.updateView() + self?.isHighlightAnimating = false + }) } } }