use && instead of comma (,) if you don't use if let

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-01 09:14:13 -06:00
parent 25058dd92d
commit 6e8fe4ea91

View File

@ -80,7 +80,7 @@ open class Loader: View {
super.updateView()
icon.color = iconColorConfiguration.getColor(self)
icon.customSize = size
if isActive, self.isVisibleOnScreen {
if isActive && isVisibleOnScreen {
startAnimating()
} else {
stopAnimating()