Late last year I mentioned a custom UI component for creating two option switches with many customization options calledDGRunkeeperSwitch.
Here’s an open source Swift based component called BetterSegmentedControl from George Marmaridis that features an easily customizable alternative to UISegmentedControl and UISwitch.
BetterSegmentedControl can be implemented in code or interface builder with the colors, inset, rounding, and inset all easily customized.
Here is an animation from the readme showing different switches created with BetterEgmentedControl:
You can find BetterSegmentedControl on Github here .
A nice easy to implement custom segmented control.
转载本站任何文章请注明：转载至神刀安全网，谢谢神刀安全网 » Maniac Dev : Swift Based UISwitch And UISegmentedControl Replacement With Easy Customization