title: Rotate a view for 360 degrees indefinitely in Swift?
body: <p>I want to rotate an image view for 360 degrees indefinitely.</p>
  
  <pre><code>UIView.animate(withDuration: 2, delay: 0, options: [.repeat], animations: {
      self.view.transform = CGAffineTransform(rotationAngle: 6.28318530717959)
  }, completion: nil)
  </code></pre>
  
  <p>How can I do it?</p>