Closed thbaja closed 7 years ago
@thbaja you should just need to call setImage
before startAnimating
right? That sets the image immediately.
Sorry for not getting back to you on this issue before, but now I've had a chance to take a look on it.
I'm using autolayout to set up the UI including the KenBurnsImageView. I do this on viewDidLoad, which means the subviews haven't been laid out yet giving a size of zero. When starting a new animation cycle the size of self is used, which can be seen in the code snippet above. That is why I had to wait an animation cycle before seeing the image and animation.
For future reference I think the best solutions in prioritized order are:
Thanks for the thorough discussion @thbaja
Is there an easy way to get the image shown and start animating right away? It seems it needs to complete one cycle first, which will last for an interval within the durationRange.
A working dirty hack is doing something like this: