JD2017 JD2017 - 1 year ago 144
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 Source
let stackView = UIStackView()
stackView.spacing = 10.0      // or whatever you like
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download