LightSwiftPager

an Easy way to create a pager for ios


License
MIT
Install
pod try LightSwiftPager

Documentation

LightSwiftPager

A Light framework for creating Sliding viewcontrollers for ios
Alt Text

Installing

via CocoaPods

platform :ios, '9.0'
pod 'LightSwiftPager'
use_frameworks!

Usage

Subclass LightPagerViewContoller and implement data source methods in the subclass.
See example project for more details .

class ViewController: LightPagerViewContoller {
    override func viewDidLoad() {
        super.viewDidLoad()
        taps.append(TapItem(title: "title"))
        taps.append(TapItem( image: UIImage(named: "one")))
        taps.append(TapItem( title: "title1",image: UIImage(named: "one")))
    }
    override func viewWillAppear(_ animated: Bool) {
        reloadTaps()
    }
}

Data Source

func tapItems() ->[TapItem]
func viewContollers() ->[UIViewController]
@objc optional func titelColors() -> [UIColor]

Delegate

@objc optional func didSelectTab(tab :LightPagerViewContoller , index:Int)

Customization

setTapBackgroundColor(_ color:UIColor)
setIndicatorBackGroundColor(_ color:UIColor)

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details