Latest 1.0.1
Homepage https://github.com/Digipolitan/ordered-page-view-controller-swift
License BSD
Platforms ios 8.0, tvos 9.0, requires ARC

Build Status
CocoaPods Compatible
Carthage Compatible
Platform
Twitter

OrderedPageViewController is a UIPageViewContoller using delegate & dataSource to provide UIViewController with indexes

Installation

CocoaPods

To install OrderedPageViewController with CocoaPods, add the following lines to your Podfile.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0' # or platform :osx, '10.10' if your target is OS X.
use_frameworks!

pod 'OrderedPageViewController'

The Basics

First you must create a OrderedPageViewController and register delegate and dateSource, after that add the controller to your interface

let orderedPageViewController = OrderedPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal)
orderedPageViewController.orderedDelegate = self
orderedPageViewController.orderedDataSource = self
orderedPageViewController.isInfinite = true
let navigation = UINavigationController(rootViewController: orderedPageViewController)
navigation.navigationBar.isTranslucent = false
window.rootViewController = navigation

Implements OrderedPageViewControllerDataSource

func orderedPageViewController(_ orderedPageViewController: OrderedPageViewController, viewControllerAt index: Int) -> UIViewController {
  return // INSTANCIATE CONTROLLER HERE
}

func numberOfPages(in orderedPageViewController: OrderedPageViewController) -> Int {
  return 10
}

Contributing

See CONTRIBUTING.md for more details!

This project adheres to the Contributor Covenant Code of Conduct.
By participating, you are expected to uphold this code. Please report
unacceptable behavior to [email protected].

License

OrderedPageViewController is licensed under the BSD 3-Clause license.

Latest podspec

{
    "name": "OrderedPageViewController",
    "version": "1.0.1",
    "summary": "OrderedPageViewController is a UIPageViewContoller using delegate & dataSource to provide UIViewController with indexes",
    "homepage": "https://github.com/Digipolitan/ordered-page-view-controller-swift",
    "authors": "Digipolitan",
    "source": {
        "git": "https://github.com/Digipolitan/ordered-page-view-controller-swift.git",
        "tag": "v1.0.1"
    },
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "source_files": "Sources/**/*.{swift,h}",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This