Latest 0.1.0
Homepage https://github.com/fileio/FLTickerSlider
License MIT
Platforms ios 8.0
Authors

Simple and light weight slider with ticker

Appearance

screen shot

Install

Create Podfile as below

use_frameworks!
platform :ios, '8.0'

target '<TARGET_NAME>' do
  pod 'FLTickerSlider'
end

then run

$ pod install

Usage

// create FLTickerSlider instance
let tickerSlider = FLTickerSlider.init(frame: CGRect(x: 0, y: self.view.frame.size.height / 2, width: self.view.frame.size.width, height: 40))
self.view.addSubview(tickerSlider)

// create shadow
let shadow = FLSliderTick.Shadow(color: UIColor.blue,
                 offset: CGSize(width: 0.0, height: 0.0),
                 opacity: 0.8,
                 radius: 2.0)

// create tickers
let tick0 = FLSliderTick(offset: 0.4)
let tick1 = FLSliderTick(offset: 0.5,
             color: UIColor.red,
             shadow: shadow)
let tick2 = FLSliderTick(offset: 0.6,
             color: UIColor.blue,
             shadow: shadow,
             width: 12,
             height: 12,
             shape: FLSliderTick.Shape.rect)
let tick3 = FLSliderTick(offset: 0.7,
             color: UIColor.blue,
             shadow: shadow,
             width: 20,
             height: 16,
             shape: FLSliderTick.Shape.rect)
tick3.alpha = 0.5

// add tickers to FLTickerSlider
tickerSlider.set(tickers: [
    tick0,
    tick1,
    tick2,
    tick3
])

LICENSE

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

Latest podspec

{
    "name": "FLTickerSlider",
    "version": "0.1.0",
    "summary": "Simple and light weight slider with ticker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/fileio/FLTickerSlider",
    "authors": {
        "tsuzuki": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fileio/FLTickerSlider.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FLTickerSlider/**/*.{h,m,swift}"
}

Pin It on Pinterest

Share This