3

I want a login screen that contain user name and password text field and a button. I add all this fields in a stack view and the margin between the components gone.How can I put margin between elements in IOS stack view?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Shanto George
  • 994
  • 13
  • 26

2 Answers2

6

Select the stackView and set spacing. enter image description here

William Hu
  • 15,423
  • 11
  • 100
  • 121
2

enter image description here

UIStackView has a property called Spacing. you can set this property value as per your spacing need.

iAnurag
  • 9,286
  • 3
  • 31
  • 48