title: UITableViewCells bottom edge flickering when app enters foreground
body: <p>I've build an app which contains an UITableView with a bunch of cells. Inside the cells I've got a view, which fill the whole cell. I've configured the tableview like this:</p>
  
  <pre><code>tableView.separatorStyle = .none
  tableView.backgroundColor = UIColor(red: 24/255.0, green: 34/255.0, blue: 41/255.0, alpha: 100)
  tableView.separatorColor = UIColor(red: 26/255.0, green: 34/255.0, blue: 40/255.0, alpha: 100)
  </code></pre>
  
  <p>Whenever the app enters the foreground, I got those little lines flickering for 0.5 seconds or so. To be clear, I don't want those.</p>
  
  <p><a href="https://i.stack.imgur.com/d28Q6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d28Q6.png" alt="enter image description here"></a></p>
  
  <p>And this is how it looks like when the app fully entered the foreground, and how it is supposed to look like:</p>
  
  <p><a href="https://i.stack.imgur.com/2SyjF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2SyjF.png" alt="enter image description here"></a></p>
  
  <p>Any ideas how to get rid of them?</p>
  
  <p>EDIT 1: </p>
  
  <p>I'm starting to doubt that the flickering is related to the separators, because it is only happening between cells in a section, not between the section-cell and the first cell in a section. I've grabbed some screenshots of the view hierarchy and the constraints related to the view (Foreground view) I show in the cell. </p>
  
  <p><a href="https://i.stack.imgur.com/HZrhd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HZrhd.png" alt="enter image description here"></a> 
  <a href="https://i.stack.imgur.com/KkKWQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KkKWQ.png" alt="enter image description here"></a></p>
  
  <p>EDIT 2: </p>
  
  <p>If I set the top and bottom constraint to -2 instead of 0, there's no flickering at all, however it's not as I want it visually. So the flickering is not related to the separators at all.</p>