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?
Asked
Active
Viewed 1,074 times
3
-
have you refered this, https://www.raywenderlich.com/114552/uistackview-tutorial-introducing-stack-views ? @Shanto George – KAR Nov 18 '16 at 05:34
-
thank you for you replay,let me check – Shanto George Nov 18 '16 at 05:37
-
you are welcome. Please check it. It will surely help you. @Shanto George – KAR Nov 18 '16 at 05:38
2 Answers
2
UIStackView has a property called Spacing. you can set this property value as per your spacing need.

iAnurag
- 9,286
- 3
- 31
- 48