SJFluidSegmentedControl
SJFluidSegmentedControl copied to clipboard
Segmented control tend to be different when landscape mode.
Hi, the fluid in selectedIndex when in portrait mode and landscape mode are not the same.
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.