[![CI Status](http://img.shields.io/travis/Alexander Yianni/YSSliderBar.svg?style=flat)](https://travis-ci.org/Alexander Yianni/YSSliderBar)
To run the example project, clone the repo, and run pod install
from the Example directory first.
##Purpose
YSSliderBar is an iOS component to be used as an alternative to a segmented control or tab.
##ARC Compatibility
If you're using this on an older project, just include the -fobjc-arc compiler flag for the YSSliderBar.m class
##Usage The component is designed to be used with various styles. The indicator bar can be configured to be shown at the top, bottom, left/right (if appropriate) and behind to behave like a highlighter.
set the placement of the Indicator with the setIndicatorPlacement method, taking one of
- IndicatorPlacementTop,
- IndicatorPlacementBottom,
- IndicatorPlacementLeft,
- IndicatorPlacementRight,
- IndicatorPlacementBehind
Set your items by passing in an array of text items. [ab setItems:@[@"test1", @"test2", @"test3", @"testing one two", @"alex was here", @"'sup", @"dudes"]];
Set the colour of your indicator with: setIndicatorColor
##Delegate By adhering to the YSSliderBarDelegate, you'll get two optional callbacks which the names are hopefully self-explantory:
- sliderBarDidChangeSelectedItem
- sliderBarWillChangeSelectedItem
YSSliderBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "YSSliderBar"
Alexander Yianni, alex.yianni@yianni-software.com
YSSliderBar is available under the MIT license. See the LICENSE file for more info.