Skip to content

danielpluvia/DPSwiftExtension

Repository files navigation

DPSwiftExtension

CI Status Version License Platform

Example

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

Usage

DPPagingScrollViewController

import DPSwiftExtension

class PagingViewController: DPPagingScrollViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupPages()
        }

    fileprivate func setupPages() {
        let view1 = UIView()
        let view2 = UIView()
        let view3 = UIView()
        view1.backgroundColor = .red
        view2.backgroundColor = .yellow
        view3.backgroundColor = .green
        set(pages: [view1, view2, view3])
    }
}

Requirements

Installation

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

pod 'DPSwiftExtension'

Author

danielpluvia, danielpluvia@outlook.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published