title: Swift - animating UIImageView image
body: <p>just a quick issue I'm having regarding animating a moving background image for my current application setup. Essentially I want to have my currently still background image scroll from left to right endlessly across my view; but I'm struggling piecing it all together. From a variety of various other sources I've comprised this function that isn't currently working, and i really can't figure out how or why.</p>
  
  <pre><code>func animate(_ image: UIImageView) {
          UIView.animate(withDuration: 5, delay: 0, options: .curveLinear, animations: {
              image.transform = CGAffineTransform(translationX: -100, y: 0)
          }) { (success: Bool) in
              image.transform = CGAffineTransform.identity
              self.animate(image)
          }
      }
  </code></pre>
  
  <p>Any help/assistance is immensely appreciated!</p>