MASegmentedControl icon indicating copy to clipboard operation
MASegmentedControl copied to clipboard

Default selected Index is not showing if its not 0

Open mhamidg opened this issue 5 years ago • 4 comments

Please add the fix in the code: let thumbViewPositionX = selectedSegmentIndex == 0 ? padding : bounds.width / CGFloat(buttons.count) * CGFloat(selectedSegmentIndex) + padding

Under the method: private func setThumbView() {

mhamidg avatar Oct 17 '20 13:10 mhamidg

Sorry about being late. I will check and get back to you

alokc83 avatar Mar 02 '21 13:03 alokc83

Is it any chance to fix this bug?

gegger avatar Feb 02 '22 19:02 gegger

I am unable to set selectedIndex = 1 and its not working..any chance to get the function fixed?

DharaniDevApp avatar Mar 07 '22 14:03 DharaniDevApp

Works fine for me..

DharaniDevApp avatar Mar 07 '22 14:03 DharaniDevApp