Home About

Why The Failure,
Auto Layout?

Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
  "<NSAutoresizingMaskLayoutConstraint:0x1f5b3d10 h=--& v=--& V:[UIView:0x1f5a2f70(460)]>",
  "<NSLayoutConstraint:0x1f5a3c80 V:[UIView:0x1f5a31b0]-(385)-| (Names: '|':UIView:0x1f5a3120 )>",

Auto Layout on iOS and macOS is awesome. But when it goes wrong, the error logs are a pain to decipher.

This site helps you visualize the conflicting constraints in the logs. It was built using Swift, Vapor and Sparse; and the source code is available on GitHub. If you found it useful, please give it a star.