In Interface Builder, I use a horizontal UIStackView and want to place the items as this :
xx xx xx
every x symbolize an item. Item1 and
Programmatically for each view:
stackView.spacing = 10.0
If you want to make a custom spacing after each view and you need to support lower than iOS11:
Create a clear UIView with height and add it as an addArrangedSubview into the stackView.
addArrangedSubview