Open regnerjr opened 7 years ago
Also I think you're awesome! Just wanted to you to know that I care about you. And I care about the flexibility of your layouts.
@regnerjr awww, I am feeling loved! hahaha! yes the width is not necessary as I setting leading and trailing constraints. Thank you! 👍
When running this on the iPhoneSE simulator I see this error printed in the console.
You can see it references some
NSLayoutConstraint
with an explicit width of "343" which is broken.A little digging shows that it is this "Separator View"
Suggested Fix
Remove Explicit width constraint from the "separator view", it is already fully constrained because it has left and right margins, as well as top and bottom. Note with a separator view like this it is one of the places where I will recommend a fixed height constraint, but you already have one of them.
Other Minor Problems
Fixed width on labels? What if you app is localized, or the font changes or the users chooses a larger default font? Truncation city. 😜
Perhaps, an Equal Width constraint across all of them to keep uniform?