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

Enable use in UITableView #9

Merged
merged 2 commits into from Dec 18, 2017

Conversation

JonnyLinja
Copy link
Contributor

@JonnyLinja JonnyLinja commented Dec 16, 2017

Variables sections and selectedSection were made open so it's possible to actually programmatically change the value rather than just listen to changes via the delegate function. Without this, the only way to really change it is to recreate the entire SectionedSlider.

TouchedMoved were swapped out for pan gestures so the gesture recognizers could operate with that of a scrollView. Otherwise, the pan gesture of the scrollView would activate when you're trying to use the Sectioned Slider. Note that this was only tested via Storyboards (aka using awakeFromNib), I haven't tested it via programmatic creation init(frame: CGRect, selectedSection: Int, sections: Int, palette: Palette = Palette())

@LeonardoCardoso
Copy link
Owner

Thanks, @JonnyLinja.

@LeonardoCardoso LeonardoCardoso merged commit 52582c8 into LeonardoCardoso:master Dec 18, 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

Successfully merging this pull request may close these issues.

None yet

2 participants