Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 867 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 867 Bytes

StackPageView

Vertical page view with UIViewControllers stacked on the top of each other

Install

add StackPageView.swift your project.

How to Use

class ViewController: UIViewController,StackViewDataSource {

    @IBOutlet weak var stackPageView: StackPageView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        stackPageView.dataSource = self
        stackPageView.parentViewController = self
    }

    func stackViewNext(currentViewController: UIViewController?) -> UIViewController {
        return DummyViewController()
    }
    
    func stackViewPrev(currentViewController: UIViewController?) -> UIViewController {
        return DummyViewController()
    }

}

#Support Support with initWithFrame and Storyboard.

#LICENSE MIT