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

Conformance to UISegmentedControl #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

michallaskowski
Copy link
Contributor

Hi.
Changed base class of SMBasicSegmentView to UIControl and added action sending for ValueChanged - the same as in UISegmentedControl.
Also added selectedSegmentIndex property (same as in UISegmentedControl) while deprecating indexOfSelectedSegment. Both works properly so there are no breaking changes, but at some time you could delete the deprecated property.

I assumed the next version will be 1.2.0 so I used it in the @available annotation, but you could of course change it to your needs. If you would like to I can add another commit with changed Info.plist and .podspec for 1.2.0 version.

Make SMBasicSegmentView to inherit from UIControl,
it makes it conformant to standard controls.
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.

1 participant