I\'m facing an issue. I\'m working on an app and I\'m using storyboard with Autolayout enabled. Now on one of my UIViewControllers>
storyboard
UIViewControllers>
Add this:
override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() VIEWTOFIX.setTranslatesAutoresizingMaskIntoConstraints(true) }
Putting it in viewDidLayoutSubviews instead of viewDidLoad got rid of the layout constraint errors for me.
viewDidLayoutSubviews
viewDidLoad