torryharris/TH-SliderSwitch — pull request #1 by Akhilesh11 (2014-09-01 10:33:54+00:00)
Title: Optimized redundant code.

1. Did changes to - (void)setFrameVertical:(CGRect)frame numberOfFields:(NSUInteger)number withCornerRadius:(CGFloat)cornerRadius and - (void)setFrameHorizontal:(CGRect)frame numberOfFields:(NSUInteger)number withCornerRadius:(CGFloat)cornerRadius methods to remove redundant code.
2. Added two methods, -(CAShapeLayer *)shapeLayerVertical:(UILabel *)label cornerRadiusValue:(CGFloat)cornerRadius and -(CAShapeLayer *)shapeLayerHorizontal:(UILabel *)label cornerRadiusValue:(CGFloat)cornerRadius.