I have a label in a stack view, everything is defined Programmatically, but when the size of this label is increase, the size of the entire stack view increase from left and right side. Could you tell me how the configuration should looks like to avoid it? Many thanks
Asked
Active
Viewed 62 times
0
-
try to set height constraint for stack view – Wassim Ben Hssen Dec 05 '19 at 14:46
-
I can't do that, I want something like adjustFontSizeToFitrWidth but for cutting label with dots ... – Lifetime Email Dec 05 '19 at 14:50
-
you can set number of lines to your label to avoid cutting text – Wassim Ben Hssen Dec 05 '19 at 14:52
-
Actually I want to cutting, not changing the font size, without set height or width constraints for slackview – Lifetime Email Dec 05 '19 at 14:56
-
Please look this [post](https://stackoverflow.com/questions/59192194/swiftui-state-change-in-uitextfield-causes-the-framewidth-to-grow-uncontrolled/59193838#59193838) - topic is different but the solution is the same. – Asperi Dec 05 '19 at 16:30