On tableView Update - Image will extend ImageView bounds
<p>I am trying to build a <code>UITableView</code> which cells are containing a <code>UIImageView</code> and a few <code>UILabels</code>.</p>

<p>Not in general but sometimes updating the list via <code>reloadData()</code>.
My table images conflict with <code>UIViewContentMode.ScaleToFill</code> and clipping to bounds. </p>

<p>The cell will appear like this, extending it's edges.:</p>

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

<p><strong>These options are set for the image in <code>awakeFromNib</code>:</strong></p>

<pre><code>self.miniImg.layer.cornerRadius = self.miniImg.frame.width/2 // Circular
self.miniImg.clipsToBounds = true
self.miniImg.layer.masksToBounds = true
self.miniImg.contentMode = UIViewContentMode.ScaleToFill
</code></pre>

<p>My idea was to try and fix this by clipsToBounds and masksToBounds. But it didn't work.</p>