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:
parent
25058dd92d
commit
6e8fe4ea91
@ -80,7 +80,7 @@ open class Loader: View {
|
|||||||
super.updateView()
|
super.updateView()
|
||||||
icon.color = iconColorConfiguration.getColor(self)
|
icon.color = iconColorConfiguration.getColor(self)
|
||||||
icon.customSize = size
|
icon.customSize = size
|
||||||
if isActive, self.isVisibleOnScreen {
|
if isActive && isVisibleOnScreen {
|
||||||
startAnimating()
|
startAnimating()
|
||||||
} else {
|
} else {
|
||||||
stopAnimating()
|
stopAnimating()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user