With 0.66 this exception is thrown on very basic animation:
myView.makeAlpha(0.0)
.duration(aDuration)
.autoreverses()
.repeatCount(someRepetitions)
.completion {
// Some statements
myView.removeFromSuperview()
}
.animate()
Let's say it's a find of flash.
I tried other animation like makeSizeor makeColor but same behavior.
This flash portion of code is called several times on a sequence basis. On the first call everything is fine. The exception is raises on the second call.
Between these two calls of flash there is an animation using CATransaction. On the completion block of this animation the second call of flash is then made.
CATransaction.begin()
CATransaction.setCompletionBlock({
// call to flash animations
})
...
CATransaction.commit()
This error came after I decided to use CATransaction to use it's completion block.
With
0.66this exception is thrown on very basic animation:Let's say it's a find of flash.
I tried other animation like
makeSizeormakeColorbut same behavior.This flash portion of code is called several times on a sequence basis. On the first call everything is fine. The exception is raises on the second call.
Between these two calls of flash there is an animation using
CATransaction. On the completion block of this animation the second call of flash is then made.This error came after I decided to use
CATransactionto use it's completion block.