Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var containerViewBottomAnchor: NSLayoutConstraint?
- func setupToolBar() {
- ...
- containerViewBottomAnchor = containerView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
- containerViewBottomAnchor?.isActive = true
- }
- func modify(){
- containerViewBottomAnchor?.constant = -500
- }
- containerView.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -500).isActive = true
Add Comment
Please, Sign In to add comment