Unable to set format constraint to zero in Xcode 11.three

When you’ve got upgraded to Xcode 11.three and you’re utilizing Interface Builder to create the applying consumer interface, it might not be attainable to set the worth of the spacing constraints to zero. Simply open Interface Builder and click on "Add New Constraints" to attempt it out. After you have set one of many constraints to zero, it robotically restores it to straightforward.

Now we have acquired various emails from our readers asking us questions on the issue. No downside. It's not your fault, however a bug in Xcode 11.three. And, in keeping with the Xcode 11.four launch be aware, the bug will quickly be mounted:

Mounted a bug that prevented getting into a relentless zero within the contextual constraint editors. (54076090)

An answer?

Throughout this time, one of the simplest ways to work round the issue is to set a constraint worth better than zero. Then go to the Dimension inspector to reset its worth to zero.

Alternatively, you’ll be able to set the stress worth to zero.01.

Founding father of AppCoda. Writer of a number of iOS programming books, together with Starting iOS 13 Programming with Swift and Mastering SwiftUI. IOS software developer and blogger. Comply with me on Fb, Twitter and Google +.


The entire information to state administration in iOS


Introduction to UIAlertController, Swift Closures and Enumeration


iOS 101 programming: the best way to create a switchable desk view cell to show extra choices