Skip to content

Conformance to UISegmentedControl#7

Open
michallaskowski wants to merge 2 commits into
sima-11:masterfrom
michallaskowski:conformance
Open

Conformance to UISegmentedControl#7
michallaskowski wants to merge 2 commits into
sima-11:masterfrom
michallaskowski:conformance

Conversation

@michallaskowski

Copy link
Copy Markdown
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