gmarm / BetterSegmentedControl

An easy to use, customizable replacement for UISegmentedControl & UISwitch.
MIT License
2.22k stars 279 forks source link

Cannot Accept `UISegmentedControl.noSegment` #88

Closed shotat closed 4 years ago

shotat commented 6 years ago

The orignai SegmentedControl can accept .noSegment, which represents no selection state. Indices in this library allows UInt type but .noSegment is a type of Int (actually -1).

DavidCollinsNZ commented 5 years ago

Hi @shotat DId you find a solution to your question?

gmarm commented 4 years ago

Support for this has been added as part of https://github.com/gmarm/BetterSegmentedControl/pull/142