title: CAKeyFrameAnimation delays before repeating
body: <p>I have an ball image that I'm animating around a path. The animation is set to repeat forever, but why is there a delay between repeats?</p>
  
  <p>Here's my code: </p>
  
  <pre><code>CGPathRef aPath;
  aPath = CGPathCreateWithEllipseInRect(CGRectMake(0, 0, SIZE, SIZE), NULL);
  
  [CATransaction begin];
  
  arcAnimation = [CAKeyframeAnimation animationWithKeyPath: @"position"];
  [arcAnimation setBeginTime:CACurrentMediaTime()];
  [arcAnimation setDuration: 1.5];
  [arcAnimation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]];
  [arcAnimation setAutoreverses: NO];
  [arcAnimation setRepeatCount:HUGE_VALF];
  arcAnimation.removedOnCompletion = NO;
  arcAnimation.fillMode = kCAFillModeRemoved;
  [arcAnimation setPath: aPath];
  [ball.layer addAnimation: arcAnimation forKey: @"position"];
  [CATransaction commit];
  CFRelease(aPath);
  </code></pre>