2

How to with constrains set dynamically spacing between elements in UIStackView?

If I'll try to set spacing in Attribute inspector with IPhone 7 device, I'll get something like this:

XCode

But when I'll want to simulate it with IPhone 5 device, I'll get this:

IPhone5

My text will cropped. So how to get result with non-cropping text inside all elements? Thanks!

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
newca9h
  • 53
  • 2
  • 6

2 Answers2

2

I've got it! Simply needed to add constraint to stackview of full page and set distribution to Fill and it's all! I spent couple days for that...

newca9h
  • 53
  • 2
  • 6
0

In my case, setting the stack view distribution to .equalSpacing worked.

Joshua Wolff
  • 2,687
  • 1
  • 25
  • 42