I think the reason is that this is because this line of code dynamically changes the constraint constant depending on the current scrollY value.
, scrollview y. , "bounce" , . , , "" /, , . , , scrollview .
? , .
1
, View tableView? - ( ):
//Check if user has scrolled through all content within tableview
//If not, update constraint constant
if scrollY < self.tableView.contentSize.height - tableView.frame.size.height {
headerTopConstraint.constant = -scrollY - 65
}