I am trying to have maximum 3 views inside Stackview and all child views should be centre aligned
`
for _ in array{
if(stackView.subviews.count != 3){
let image : UIImageView = UIImageView()
image.backgroundColor = UIColor.orange
image.heightAnchor.constraint(equalToConstant:30).isActive=true
image.widthAnchor.constraint(equalToConstant:30).isActive=true
image.layer.cornerRadius=15
stackView.addArrangedSubview(image)
}
` stackview alignment is centre and distribution is equally centre