Open andrewlim7 opened 6 years ago
I have the same problem. Was able to workaround it by observing rotation changes (UIDeviceOrientationDidChange
) and doing this when change detected:
segControl.reloadData()
let idx = segControl.currentSegment
segControl.setCurrentSegmentIndex(1, animated: false)
segControl.setCurrentSegmentIndex(idx, animated: true)
It's a dirty workaround, but it does the trick for now.
Hi, the fluid in selectedIndex when in portrait mode and landscape mode are not the same.