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

Bug: selected segment background color persistence #21

Closed
mwurm93 opened this issue Jul 28, 2017 · 0 comments
Closed

Bug: selected segment background color persistence #21

mwurm93 opened this issue Jul 28, 2017 · 0 comments

Comments

@mwurm93
Copy link

mwurm93 commented Jul 28, 2017

Thanks for your awesome library! I'm running into a bug where the selected segment background color persists sometimes after moving it to another segment (see below). Please help!

img_0325

Code for implementation is below:
let segmentedControlTitles = ["Assistant","Itinerary","Chat"]
segmentedControl = TwicketSegmentedControl(frame: CGRect(x: UIScreen.main.bounds.width / 2 - 135, y: 20, width: 270, height: 40))
segmentedControl?.setSegmentItems(segmentedControlTitles)
segmentedControl?.delegate = self
segmentedControl?.segmentsBackgroundColor = UIColor.clear
segmentedControl?.isSliderShadowHidden = false
segmentedControl?.backgroundColor = .clear // This is important!

@mwurm93 mwurm93 closed this as completed Aug 2, 2017
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

1 participant