Latest 1.0.2
Homepage https://github.com/theduman/TDTextSlider
License MIT
Platforms ios 9.0
Authors

Infinite text slider for ios. Written in swift3.

alt tag

Installation

Cocoapods

pod 'TDTextSlider'

Manually

Drag TDTextSlider.swift file into your project folder

Usage

import TDTextSlider
class ViewController: UIViewController {

    let ts = TDTextSlider(frame: CGRect(x:0,y:200,width: UIScreen.main.bounds.width,height: 100))

    override func viewDidLoad() {
        super.viewDidLoad()

        ts.createSlider(textArray: ["Emre","Duman","Github","TheDuman"], duration: 3.0, delay: 2.0)
        self.view.addSubview(ts)
    }
    override func viewDidAppear(_ animated: Bool) {
        ts.startAnimating()
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}

Additionally you can use direction paramater to select the way text slide.Default is "ltr" refers left-to-right.You can set "rtl" -> right-to-left "ttb" -> top-to-bottom and "btt" -> bottom-to-top

Customization

Library created using subclass of UIView so you can customize using default UIView properties.Make sure you add your own customize code after createSlider function so it overrides default behaviours.

Latest podspec

{
    "name": "TDTextSlider",
    "version": "1.0.2",
    "summary": "Infinite and easily customizable text slider for ios written in swift3.",
    "description": "Infinite and easily customizable text slider for ios written in swift3.Created custom subclass of UIView so you can customize by using default UIView properties.",
    "homepage": "https://github.com/theduman/TDTextSlider",
    "license": "MIT",
    "authors": {
        "Emre": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/theduman/TDTextSlider.git",
        "tag": "1.0.2"
    },
    "source_files": "TDTextSlider/TDTextSlider.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This