Latest 0.1.0
Homepage https://github.com/ayianni/YSSliderBar
License MIT
Platforms ios 7.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Alexander Yianni/YSSliderBar.svg?style=flat)](https://travis-ci.org/Alexander Yianni/YSSliderBar)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

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

Installation

YSSliderBar is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "YSSliderBar"

Author

Alexander Yianni, [email protected]

License

YSSliderBar is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "YSSliderBar",
    "version": "0.1.0",
    "summary": "An iOS component to mimic the android ActionBar tabbed control",
    "description": "YSSliderBar is an iOS component to be used as an alternative to a segmented control or tab.",
    "homepage": "https://github.com/ayianni/YSSliderBar",
    "license": "MIT",
    "authors": {
        "Alexander Yianni": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ayianni/YSSliderBar.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "YSSliderBar": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This