Each UIStackView has an overall spacing property that affects spacing between all of its arranged subviews, but in addition you can add custom spacing after specific views – for example, “put 20 points of space under this button.”

To make that happen, use the setCustomSpacing() method of your stack view, providing it the number of points of spacing you want and the view that should precede the spacing.

https://www.youtube.com/watch?v=gVsD16k-GG0&t=141s

#deep-learning #ios #swift #stackview #xcode #2020

Basic Create StackView programmatically with Swift 5.2
3.85 GEEK