JD2017 JD2017 - 21 days ago 6
Swift Question

Programmatically Set Spacing on Stackview

Like the title says, I have searched around but had no luck. Is it possible to connect the stack view to the .swift file and then adjust the spacing programmatically? Thank you!

Wes Wes
Answer
let stackView = UIStackView()
stackView.spacing = 10.0      // or whatever you like