last day (14 days later) » 

12:24 PM
-1
A: Label inside Stack View

ldinduYou appeared to be having issues with Compression resistance and content hugging priority. A view with high compression resistance will fight against shrinking and in other words, it will prevent the content to clip. Content hugging, on the other hand, limits the view from growing larger than i...

 
Thanks. Now I am no more getting errors, but warnings which say that different heights/widths were expected
 
Yoy can safely ignore it as it is placement warning
Can you accept the answer if it work for you?
 
@Idindu It works and I understand that it doesn't affect much but I am not really comfortable knowing I have that warning. There must be a way to resolve it, right?
 
Update your frames by clicking on Resolve Auto layout issues menu in bottom right corner, next to pin option and it will resolve the warning.
 
@Idindu I already tried updating the frames but there is no way all the warnings will disappear. In best case scenario, only two warnings will be resolved out of 4.
 
12:25 PM
If warning is reported in many views, you need to individually select and update the frames, or you can select the ViewController's view
 
I tried manually selecting each warning and updating the frames
I think it is the same problem as when I would have, let's say, only one label in the stack view and I would get the warning saying that a different height was expected.
 
Yes... I did that
 
have you specified the height?
 
In the best case scenario, I will remain with only 2 warnings, but when I try to resolve any of those 2 remaining, again the same 4 warning will reappear
the height of who?
stack view?
 
12:30 PM
try updating the frames of names, location and types only before
and then move to stack view frame
 
still doesn't work
 
what is the issue?
 
The warning are still there
i press update but nothing happens
only if update first "name", then there would be only 2 errors
otherwise they all remain the same
 
You need to ensure that your subviews height together should be no more than your stack view's height
 
It is not
even if i make the font size 1, i will have the same warnings
 
12:36 PM
There is something wrong with your subviews dimension, you need to sort that out
 

last day (14 days later) »