Xcode – UIStackView with UISegmentedControl
I'm trying to create UIStackView with 3 UISegmentedControl with this code, and I want them to be center both vertically and horizontaly: let segmented = UISegmentedControl(items: ["SOLID","GRADIENT"]) let segmented2 = UISegmentedControl(items: ["SOLID","GRADIENT"]) let segmented3 = UISegmentedControl(items: ["SOLID","GRADIENT"]) segmented.selectedSegmentIndex = 0…