5. Debugging Constraints
So, you have taken the plunge and added constraints to your project. Now, things either don’t work the way you expect or you are seeing dreaded errors about conflicting constraints. Constraints can be maddeningly opaque. The code and interface files you create them with don’t lend themselves to easy perusal. It takes only a few “helpful” Xcode log messages to make some developers start pulling out their hair. This chapter is dedicated to shining light upon the lowly constraint.
You’re about to dive into varied and exhaustive ways to read logs and explore constraints more manageably. Helper functions make your code more debugger friendly and minimize time spent diagnosing layout issues. You’ll find ideas that will help ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access