title: Fill super view using layoutAnchor
body: <p>I have weird problem, because I can't fill whole area of super view using layout anchor</p>
  
  <p>this is my code from custom UIView class: </p>
  
  <pre><code>   private func setupTableView() {
              addSubview(tableView)
              tableView.translatesAutoresizingMaskIntoConstraints = false
  
              let margins = layoutMarginsGuide
  
              let trailingAnchor = tableView.trailingAnchor.constraint(equalTo: margins.trailingAnchor)
              let leadingAnchor = tableView.leadingAnchor.constraint(equalTo: margins.leadingAnchor)
              let topAnchor = tableView.topAnchor.constraint(equalTo: margins.topAnchor)
              let bottomAnchor = tableView.bottomAnchor.constraint(equalTo: margins.bottomAnchor)
  
              NSLayoutConstraint.activate([trailingAnchor, leadingAnchor, topAnchor, bottomAnchor])
  }
  </code></pre>
  
  <p>and in result I get weird margins on the left and right site:</p>
  
  <p><a href="https://i.stack.imgur.com/rYyTA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rYyTA.png" alt="enter image description here"></a></p>