Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default selected Index is not showing if its not 0 #10

Open
mhamidg opened this issue Oct 17, 2020 · 4 comments
Open

Default selected Index is not showing if its not 0 #10

mhamidg opened this issue Oct 17, 2020 · 4 comments

Comments

@mhamidg
Copy link

mhamidg commented Oct 17, 2020

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() {

@alokc83
Copy link
Owner

alokc83 commented Mar 2, 2021

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

@gegger
Copy link

gegger commented Feb 2, 2022

Is it any chance to fix this bug?

@DharaniDevApp
Copy link

DharaniDevApp commented Mar 7, 2022

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

@DharaniDevApp
Copy link

Works fine for me..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants