Latest 1.0.3
Homepage https://github.com/xieran2017/TabScroll
License MIT
Platforms ios 8.0
Dependencies SnapKit
Authors

Quick Start

class MyViewController: UIViewController {

    lazy var sc = TabScroll(frame: CGRect(x: 0, y: 0, width: 100, height: 40))

    override func viewDidLoad() {
        super.viewDidLoad()

        sc.font = UIFont.systemFont(ofSize: 16)
        sc.titles = ["1000","2000","3000","4000","5000","6000","7000"]
        self.view.addSubview(sc)
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        sc.selectedIndex = 0
    }
}

Latest podspec

{
    "name": "TabScroll",
    "version": "1.0.3",
    "summary": "TabScroll.",
    "description": "TabScroll, TabScroll",
    "homepage": "https://github.com/xieran2017/TabScroll",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xie ran": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/xieran2017/TabScroll.git",
        "tag": "1.0.3"
    },
    "source_files": "Source/*.swift",
    "dependencies": {
        "SnapKit": [
            "~> 4.0.0"
        ]
    }
}

Pin It on Pinterest

Share This