|
|
@@ -205,9 +205,8 @@ open class AnimatedImageView: UIImageView {
|
|
|
/// Starts the animation.
|
|
|
override open func startAnimating() {
|
|
|
guard !isAnimating else { return }
|
|
|
- if animator?.isReachMaxRepeatCount ?? false {
|
|
|
- return
|
|
|
- }
|
|
|
+ guard let animator = animator else { return }
|
|
|
+ guard !animator.isReachMaxRepeatCount else { return }
|
|
|
|
|
|
displayLink.isPaused = false
|
|
|
}
|