I have a looping animation like this:
UIView.Animate(50, 0, UIViewAnimationOptions.Repeat | UIViewAnimationOptions.CurveLinear, () => {
bgBackground.Frame = new RectangleF(new PointF(-496, bgBackground.Frame.Y), bgBackground.Frame.Size);
}, () => {});
but when the app goes to background and the animation is not running.
I've listened for the event when the app comes to foreground but I can't figure out how to restart the animation.
I have another looping animation using CABasicAnimation and that one is still running when resuming the app so can't I use UIView based animations for looping animations?
Other similar questions have just provided CALayer animations as the solution: