Open onmyway133 opened 5 years ago
view.addSubview(scrollView) scrollView.addSubview(stackView) NSLayoutConstraint.on([ scrollView.pinEdges(view: view), stackView.pinEdges(view: scrollView) ]) NSLayoutConstraint.on([ stackView.widthAnchor.constraint(equalTo: scrollView.widthAnchor, multiplier: 1.0) ])
What is the syntax NSLayoutConstraint.on ?