enforced animation back from highlight

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-12-06 15:58:05 -06:00
parent 7da9e33f9d
commit edcaadf274

View File

@ -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
})
}
}
}