JD2017 JD2017 - 4 months ago 56
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
let stackView = UIStackView()
stackView.spacing = 10.0      // or whatever you like