Skip to content

Commit 20be3df

Browse files
jondwilliskzaher
authored andcommitted
Removing only the specified image transition animation
This can fix animation bugs if you are doing multiple animations on the UIImageView
1 parent bd5a965 commit 20be3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxCocoa/iOS/UIImageView+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extension Reactive where Base: UIImageView {
3535
}
3636
}
3737
else {
38-
imageView.layer.removeAllAnimations()
38+
imageView.layer.removeAnimation(forKey: kCATransition)
3939
}
4040
imageView.image = image
4141
}

0 commit comments

Comments
 (0)