How do I animate a UIView along a circular path?
<p>In Swift code, how can I start and animate a <code>UIView</code> so that it moves in a motion along a circular path, then bring it to an end gracefully? Is it possible to achieve this using a <code>CGAffineTransform</code> animation? </p>

<p>I have prepared a GIF below showing the type of animation I'm trying to achieve.</p>

<p><a href="https://i.stack.imgur.com/kWndU.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/kWndU.gif" alt="enter image description here"></a></p>