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!
Asked
Active
Viewed 4,039 times
2 Answers
3
In case you have a custom UIStackView
class YourCustomSublcass {
//MARK: Initialization of the stackView
override init(frame: CGRect) {
super.init(frame: frame)
self.spacing = 8.0
}
required init(coder :NSCoder){
super.init(coder: coder)
self.spacing = 8.0
}
}

Eric Aya
- 69,473
- 35
- 181
- 253

Braham Youssef
- 479
- 6
- 6