title: iOS 13 UITableViewCell | Child view gets clipped out
body: <p>SO I have a <code>UITableView</code> which contains a <code>UITableViewCell</code> and <code>tableView.header</code> is set to a Parallax Header. The <code>UITableViewCell</code> has certain <code>UIView</code>s which are set as negative constraints from Top and are shown perfectly on <strong>iOS-12</strong> whereas when observed on <strong>iOS-13</strong> the <code>UIView</code>s showing over Parallax Header are clipped. I have tried all possible solutions but unfortunately it still shows the same. My App is opting out of SwiftUI and still running the old code. I have even tried to change the <code>zIndex</code> of the child <code>UIView</code> but still the same. Here are some snapshots and some code:</p>
  
  <pre><code>override func awakeFromNib() {
      super.awakeFromNib()
      // Initialization code
  
      self.PriceView.layer.zPosition = 1
      self.PriceView.bringSubviewToFront(self.contentView)
      self.PriceView.setNeedsDisplay()
  }
  </code></pre>
  
  <p>This code is functional for <strong>iOS-12</strong> but not <strong>iOS-13</strong>.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Apple's changelog/documentation for <strong>iOS-13</strong> suggests:</p>
  
  <blockquote>
    <p>The UITableViewCell class’s contentView property is always laid out
    edge-to-edge with adjacent accessories, both on the leading and the
    trailing side. This streamlines the layout code so developers who want
    the correct default offset no longer have to align their content with
    the content view border or the layout margin depending on whether
    there is an accessory on the trailing side or not. You should now
    always lay out their code on the layout margins of the cell’s content
    view to get the default system insets. These insets will be adjusted
    automatically based on the accessories visible in the cell to match
    the system’s default spacing. (48214114)</p>
  </blockquote>
  
  <p>This is a bit unclear to me and if someone can help me out here.</p>
  
  <p>Here are the snapshots as to how it is showing in <strong>iOS-12</strong> which is required and how it is showing in <strong>iOS-13</strong> respectively:</p>
  
  <p><a href="https://i.stack.imgur.com/8XWF4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8XWF4.jpg" alt="enter image description here"></a></p>
  
  <p>And here observe for <strong>iOS-13</strong>:</p>
  
  <p><a href="https://i.stack.imgur.com/94stX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/94stX.jpg" alt="enter image description here"></a></p>
  
  <p>Here is also the Constraint Layout of my <code>UITableViewCell</code>'s <code>PriceView</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/u52fT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u52fT.png" alt="enter image description here"></a></p>
  
  <p>I need both to be consistent on both OSes. THANK YOU SO MUCH FOR THIS HELP!</p>