title: Why constraints are updated on scrolling of UITableView?
body: <p>I have 2 simple UILabel that needs to be placed horizontally. One of them on right side of view, while second one is on the left side and gets all possible space. Here is my constraints: </p>
  
  <pre><code>    amountOfQuestions.rightAnchor.constraint(equalTo: rightAnchor, constant: -8).isActive = true
      amountOfQuestions.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true
  
  
      topicName.leftAnchor.constraint(equalTo: leftAnchor, constant: 8).isActive = true
      topicName.topAnchor.constraint(equalTo: topAnchor, constant: 8).isActive = true
      topicName.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8).isActive = true
      topicName.rightAnchor.constraint(equalTo: amountOfQuestions.leftAnchor, constant: -8).isActive = true
  </code></pre>
  
  <p>Seems like everything is ok, but when table view is shown, it looks like this: </p>
  
  <p><a href="https://i.stack.imgur.com/GpE8U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GpE8U.png" alt="enter image description here"></a></p>
  
  <p>But after I scroll couple of times my table up and down, it became normal:</p>
  
  <p><a href="https://i.stack.imgur.com/DLzjf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DLzjf.png" alt="enter image description here"></a> </p>
  
  <p>Why my table is not shown immediately like in second picture? </p>
  
  <p>Solution: </p>
  
  <pre><code>amountOfQuestions.rightAnchor.constraint(equalTo: rightAnchor, constant: -8).isActive = true
      amountOfQuestions.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true
      amountOfQuestions.setContentHuggingPriority(.required, for: .horizontal)
      amountOfQuestions.setContentCompressionResistancePriority(.required, for: .horizontal)
  
      topicName.leftAnchor.constraint(equalTo: leftAnchor, constant: 8).isActive = true
      topicName.topAnchor.constraint(equalTo: topAnchor, constant: 8).isActive = true
      topicName.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8).isActive = true
      topicName.rightAnchor.constraint(equalTo: amountOfQuestions.leftAnchor, constant: -8).isActive = true
      topicName.setContentHuggingPriority(.required, for: .horizontal)
      topicName.setContentCompressionResistancePriority(.required, for: .vertical)
  
  
      let myBottom = topicName.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8)
      myBottom.priority = UILayoutPriority(rawValue: UILayoutPriority.required.rawValue - 1)
      myBottom.isActive = true
  </code></pre>