In previous versions of Xcode, I was able to just open the storyboard and click almost anywhere, and in the file inspector, there was a button to disable auto layout. It seems like that's not an option anymore? Am I being forced to use auto layout now?
Create a new Xcode project. Select Single view app and name it AutoLayout. Leave the defaults unchecked: Use core data.
According Apple forum this option silently disappeared in Xcode 11.
You can still do it programmatically at viewDidLoad
for constraint in self.view.constraints {
constraint.isActive = false
}
Select your view in the storyboard and enable/disable LAYOUT automatic option in the right section
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With