Shanto George
Shanto George

Reputation: 994

Put margin between elements in IOS stack view

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?

Upvotes: 3

Views: 1108

Answers (2)

iAnurag
iAnurag

Reputation: 9356

enter image description here

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

Upvotes: 2

William Hu
William Hu

Reputation: 16149

Select the stackView and set spacing. enter image description here

Upvotes: 6

Related Questions