Latest 0.1.4
Homepage https://github.com/AvaVaas/LightSwiftPager
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

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

Latest podspec

{
    "name": "LightSwiftPager",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "an Easy way to create a pager for ios",
    "requires_arc": true,
    "version": "0.1.4",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ahmed Nasser": "[email protected]"
    },
    "homepage": "https://github.com/AvaVaas/LightSwiftPager",
    "source": {
        "git": "https://github.com/AvaVaas/LightSwiftPager.git",
        "tag": "0.1.4"
    },
    "frameworks": "UIKit",
    "source_files": "LightSwiftPager/*.{swift,.h}",
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This