UISegementedControl selectedSegmentedIndex = -1 Not Working

I have two UISegmentedControls in my app and deselect one segmented control's segment when the user selects the other segmented control. It was working until Xcode 11. I guess I will have to submit a bug report. Has anybody else experienced this and found a workaround?

Replies

This happens when running under iOS 13, but does not happen when running a simulator under iOS 12.2 for example. I've submitted a bug report.