Vote count: 0 I'm trying to completely make my view programatically. It has a bottom view that animates up when a search query finishes with the relevant information. I've set the .bottom nslayoutconstraint of the bottom view to an optional nslayoutconstraint, first initialising it off screen in override func viewWillLayoutSubviews(). let bottomView = UIView() var bottomViewBottomConstraint: NSLayoutConstraint! override func viewDidLoad() { super.viewDidLoad() view.addSubview(bottomView) } override func viewWillLayoutSubviews() { //Bottom View Constraints bottomView.translatesAutoresizingMaskIntoConstraints = false let bottomViewLeftConstraint = NSLayoutConstraint(item: bottomView, attribute...
ادامه مطلب