How to display image in diamond shape in swift?
<p><img src="https://i.stack.imgur.com/d2v6D.png" alt="Image"></p>

<p>I want to display images in diamond shape when I am giving width and height 120 and apply the corner radiu. I am getting diamond shape approximately but not getting exact diamond shape so any one suggest me it helpful to me.</p>

<pre><code>self.imageView.layer.cornerRadius = self.imageView.frame.size.width / 2
self.imageView.clipsToBounds = true
</code></pre>