mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
Revert "♻️ :: Reduce view updates by subscribing distinct"
This reverts commit fa7e30c44f.
This commit is contained in:
+2
-2
@@ -95,11 +95,11 @@ final class GradientActivityIndicatorViewModel {
|
||||
gradientLayerColorsSubject = Variable(gradientColors.infiniteGradientColors().map(\.cgColor))
|
||||
gradientLayerAnimationDurationSubject = Variable(.GradientLoadingBar.progressDuration)
|
||||
|
||||
gradientLayerAnimationDuration.subscribeDistinct { [weak self] _, _ in
|
||||
gradientLayerAnimationDuration.subscribe { [weak self] _, _ in
|
||||
self?.restartAnimationIfNeeded()
|
||||
}.disposed(by: &disposeBag)
|
||||
|
||||
gradientLayerSizeUpdate.subscribeDistinct { [weak self] _, _ in
|
||||
gradientLayerSizeUpdate.subscribe { [weak self] _, _ in
|
||||
self?.restartAnimationIfNeeded()
|
||||
}.disposed(by: &disposeBag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user