title: Constraints not updating with device orientation change
body: <p>I have a <a href="https://github.com/gizmosachin/ColorSlider" rel="nofollow noreferrer">color slider</a> in a tableView cell that extends from the label to the trailingAnchor of the cell. The issue I am having is when the device orientation changes the color slider does not update its constraints and no longer extends the full length of the cell. Below is my code to set up the constraints on the color slider. Below are images to show the issue I am having. If my phone is already in landscape orientation when I present this scene the color slider extends the full length of the cell as desired. However, if I switch to landscape when already viewing this scene the slider appears as below. Here is the <a href="https://github.com/Marcoc88/TimestampApp" rel="nofollow noreferrer">full code</a> if that helps.</p>
  
  <p><a href="https://i.stack.imgur.com/S9b5I.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S9b5I.jpg" alt="Slider Portrait"></a>
  <a href="https://i.stack.imgur.com/xXQlr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xXQlr.jpg" alt="Slider Landscape"></a></p>
  
  <pre><code>  func configureColorSlider() {
      let colorSlider = ColorSlider()
      let xCell = colorCell.contentView.bounds.width
      let yCell = colorCell.contentView.bounds.height
      colorSlider.frame = CGRect(x: xCell / 4, y: yCell / 4, width: 200, height: 24)
      colorSlider.orientation = .horizontal
      colorSlider.addTarget(self, action: #selector(ConfigureTimestampTableViewController.changedColor(_:)), for: .valueChanged)
  
      colorCell.contentView.addSubview(colorSlider)
  
      colorSlider.translatesAutoresizingMaskIntoConstraints = false
      NSLayoutConstraint.activate([colorSlider.leadingAnchor.constraint(equalTo: colorLabel.trailingAnchor, constant: 8),
                                   colorSlider.trailingAnchor.constraint(equalTo: colorCell.contentView.trailingAnchor, constant: -8),
                                   colorSlider.topAnchor.constraint(equalTo: colorCell.contentView.topAnchor, constant: 8),
                                   colorSlider.bottomAnchor.constraint(equalTo: colorCell.contentView.bottomAnchor, constant: -8) ])
  
  
    }
  </code></pre>