Open onmyway133 opened 7 years ago
constrain(scrollView, scrollViewContentView, pageIndicator) {
scrollView, scrollViewContentView, pageIndicator in
pageIndicator.left == pageIndicator.superview!.left
pageIndicator.right == pageIndicator.superview!.right
pageIndicator.bottom == pageIndicator.superview!.bottom
pageIndicator.height == 40
scrollView.top == scrollView.superview!.top
scrollView.left == scrollView.superview!.left
scrollView.right == scrollView.superview!.right
scrollView.bottom == pageIndicator.top
scrollViewContentView.edges == scrollViewContentView.superview!.edges
//scrollViewContentView.top == scrollView.superview!.top // no need
// scrollViewContentView.bottom == scrollViewContentView.superview!.bottom
}