Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hyperoslo/Pages

:page_facing_up: UIPageViewController made simple
https://github.com/hyperoslo/Pages

Last synced: 7 days ago
JSON representation

:page_facing_up: UIPageViewController made simple

Awesome Lists containing this project

README

        

⚠️ DEPRECATED, NO LONGER MAINTAINED

![Pages logo](https://raw.githubusercontent.com/hyperoslo/Pages/master/Images/pages_logo.png)

[![CI Status](http://img.shields.io/travis/hyperoslo/Pages.svg?style=flat)](https://travis-ci.org/hyperoslo/Pages)
[![Version](https://img.shields.io/cocoapods/v/Pages.svg?style=flat)](http://cocoadocs.org/docsets/Pages)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
![Swift](https://img.shields.io/badge/%20in-swift%203.0-orange.svg)
[![License](https://img.shields.io/cocoapods/l/Pages.svg?style=flat)](http://cocoadocs.org/docsets/Pages)
[![Platform](https://img.shields.io/cocoapods/p/Pages.svg?style=flat)](http://cocoadocs.org/docsets/Pages)

Pages is the easiest way of setting up a `UIPageViewController`. It comes with some convenience methods like, disabling swipe, going to a specific page and navigating backwards and forwards. And best of all, you don't have to make your own custom `UIViewController` to keep an index, Pages handles that for you. It just works.

## Usage

```swift
let viewController1 = UIViewController()
viewController1.title = "Controller A"

let viewController2 = UIViewController()
viewController2.title = "Controller B"

let pages = PagesController([viewController1, viewController2])
```

## Demo
![untitled](Screenshots/demo.gif)

## Installation

**Pages** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'Pages'
```

**Pages** is also available through [Carthage](https://github.com/Carthage/Carthage).
To install just write into your Cartfile:

```ruby
github "hyperoslo/Pages"
```

## Author

Hyper, [email protected]

## License

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