GithubHelp home page GithubHelp logo

odedharth / pager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucoceano/pager

0.0 1.0 0.0 154 KB

Pager is the simplest and best way to implement sliding view controllers in Swift

License: MIT License

Ruby 1.23% Swift 98.77%

pager's Introduction

Language

Pager is the simplest and best way to implement sliding view controllers.

Installation

Drop in the Spring folder to your Xcode project.

Or via CocoaPods pre-release:

platform :ios, '8.0'
pod 'Pager'
use_frameworks!

Usage

Subclass PagerController (as it's a UIViewController subclass) and implement data source methods in the subclass.

Usage with Code

override func viewDidLoad() {
	super.viewDidLoad()
	self.dataSource = self
}

Data Source

func numberOfTabs(pager: PagerController) -> Int
func tabViewForIndex(index: Int, pager: PagerController) -> UIView
optional func viewForTabAtIndex(index: Int, pager: PagerController) -> UIView
optional func controllerForTabAtIndex(index: Int, pager: PagerController) -> UIViewController

Delegate

optional func didChangeTabToIndex(pager: PagerController, index: Int)
optional func didChangeTabToIndex(pager: PagerController, index: Int, previousIndex: Int)
optional func didChangeTabToIndex(pager: PagerController, index: Int, previousIndex: Int, swipe: Bool)

Contact

Pager is a port from CKViewPager to swift.

Licence

Pager is MIT licensed. See the LICENCE file for more info.

pager's People

Contributors

felipedocil avatar fpg1503 avatar lfarah avatar lucoceano avatar n13 avatar odedharth avatar pedrohperalta avatar xperi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.