I am the maintainer of STAControls which subclasses various UIControls, one of which is UISegmentedControl. Within that project\'s sample app, I ha
UIControl
UISegmentedControl
The solutions given in the other answers are overblown. There is a much simpler workaround: just call setNeedsLayout on the segmented control.
setNeedsLayout
self.seg.selectedSegmentIndex = UISegmentedControl.noSegment self.seg.setNeedsLayout()