Update constraints with UIPanGestureRecognizer
问题 I have a black separatorView in the middle of the screen separating a topContainerView (orange) and a bottomContainerView (green). The separatorView can be dragged up and down with a panGesture, but I can't get the top and bottom views to update their constraints and resize. The bottom of the orange view and the top of the green view should always stick with the separatorView. Here's the code I have (UPDATED to include variable declarations): let separatorView: UIView = { let view = UIView()