Skip to content

JAPagerViewController is a simple pager based view controller to display sequence of views in single view.

License

Notifications You must be signed in to change notification settings

JayachandraA/JAPagerViewController

Repository files navigation

JAPagerViewController

CI Status Version License Platform

Example

alt text alt text

Code Usage

        let page1 = ContentViewController()
        page1.title = "Page1"
        page1.emoji = "👹"
        
        let page2 = ContentViewController()
        page2.title = "Page2"
        page2.emoji = "👿"
        
        let page3 = ContentViewController()
        page3.title = "Page3"
        page3.emoji = "👻"
        
        let page4 = ContentViewController()
        page4.title = "Page4"
        page4.emoji = "🙀"
        
        let page5 = ContentViewController()
        page5.title = "Page5"
        page5.emoji = "💩"
        
        let page6 = ContentViewController()
        page6.title = "______Page6__________"
        page6.emoji = "🤡"
        
        let page7 = ContentViewController()
        page7.title = "12______Page7__________"
        page7.emoji = "🤮"

        
        let pager = JAPagerViewController(pages: [page1,page2, page3, page4, page5, page6, page7])
        addChild(pager)
        pager.view.frame = containerView.bounds
        containerView.addSubview(pager.view)
        pager.didMove(toParent: self)

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JAPagerViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JAPagerViewController'

Author

JayachandraA, [email protected]

License

JAPagerViewController is available under the MIT license. See the LICENSE file for more info.

About

JAPagerViewController is a simple pager based view controller to display sequence of views in single view.

Resources

License

Stars

Watchers

Forks

Packages

No packages published