<commit_before># TEQuickPageViewController

An extension of UIPageViewController to allow adding Views to a Page View directly in your Storyboard, **without any additional code**.

![Pages in Storyboard](Screenshots/storyboard-example.png)

![Curled Pages](Screenshots/curl-example.png)
![Scrolled Pages](Screenshots/scroll-example.png)

TEQuickPageViewController supports Page Curl and Scroll transition types, as well as a two-page view with a Spine Location of "Mid".

## Installing

### CocoaPods

If you're using CocoaPods, just add the below to your podfile:

    pod "TEQuickPageViewController"

### Direct

To include the required source directly, just add these files to your project:

* TEQuickPageViewController.h
* TEQuickPageViewController.m

## Setting Up Your Page View

First, you'll need to prepare your UIPageViewController:

* Drag a *Page View Controller* into your Storyboard
* In the Page View Controller's Identity Inspector, set the class to *TEQuickPageViewController*

![](Screenshots/identityinspector.png)
![](Screenshots/2-setclass.png)

* Open the Page View Controller's attribute inspector, you should see some new attributes for *Quick Page View Controller*. Set *Page Identifier Prefix* to a string of your choice that will identify your sequence of pages. Below, we've used "PageSequence"

![](Screenshots/3-attributeinspector.png)
![](Screenshots/4-setprefix.png)

## Adding Pages

To add a page to your sequence of pages, you need to identify the page as belonging to your TEQuickPageViewController:

* Drag a *View Controller* into your Storyboard
* In the View Controller's Identity Inspector, set the Storyboard Identifier to the Page Identifier Prefix plus the number of the page in order. Below, our first page has an identifier "PageSequence0"

![](Screenshots/identityinspector.png)
![](Screenshots/page-setidentity.png)

Pages are numbered from 0, so the identity of our first three pages would be "PageSequence0", "PageSequence1", "PageSequence2" in this example.

## Additional Features

### Wrap Around

The Wrap Around attribute in your TEQuickPageViewController's attributes allows your pages to "wrap" from the end back to the beginning.

When disabled, the user will not be able to swipe backwards from the first page or forwards from the last page.

## Example Project

*TEQuickPageViewController.xcodeproj* is a simple iOS app making use of the TEQuickPageViewController class. Feel free to open it up and play around!<commit_msg>Add spacing between some images to ensure they're not rendered side-by-side.<commit_after># TEQuickPageViewController

An extension of UIPageViewController to allow adding Views to a Page View directly in your Storyboard, **without any additional code**.

![Pages in Storyboard](Screenshots/storyboard-example.png)

![Curled Pages](Screenshots/curl-example.png)
![Scrolled Pages](Screenshots/scroll-example.png)

TEQuickPageViewController supports Page Curl and Scroll transition types, as well as a two-page view with a Spine Location of "Mid".

## Installing

### CocoaPods

If you're using CocoaPods, just add the below to your podfile:

    pod "TEQuickPageViewController"

### Direct

To include the required source directly, just add these files to your project:

* TEQuickPageViewController.h
* TEQuickPageViewController.m

## Setting Up Your Page View

First, you'll need to prepare your UIPageViewController:

* Drag a *Page View Controller* into your Storyboard
* In the Page View Controller's Identity Inspector, set the class to *TEQuickPageViewController*

![](Screenshots/identityinspector.png)
![](Screenshots/2-setclass.png)

* Open the Page View Controller's attribute inspector, you should see some new attributes for *Quick Page View Controller*. Set *Page Identifier Prefix* to a string of your choice that will identify your sequence of pages. Below, we've used "PageSequence"

![](Screenshots/3-attributeinspector.png)

![](Screenshots/4-setprefix.png)

## Adding Pages

To add a page to your sequence of pages, you need to identify the page as belonging to your TEQuickPageViewController:

* Drag a *View Controller* into your Storyboard
* In the View Controller's Identity Inspector, set the Storyboard Identifier to the Page Identifier Prefix plus the number of the page in order. Below, our first page has an identifier "PageSequence0"

![](Screenshots/identityinspector.png)

![](Screenshots/page-setidentity.png)

Pages are numbered from 0, so the identity of our first three pages would be "PageSequence0", "PageSequence1", "PageSequence2" in this example.

## Additional Features

### Wrap Around

The Wrap Around attribute in your TEQuickPageViewController's attributes allows your pages to "wrap" from the end back to the beginning.

When disabled, the user will not be able to swipe backwards from the first page or forwards from the last page.

## Example Project

*TEQuickPageViewController.xcodeproj* is a simple iOS app making use of the TEQuickPageViewController class. Feel free to open it up and play around!
{'fraction_non_alphanumeric': 0.0691711389385808, 'fraction_numerical': 0.003180282250049692, 'mean_word_length': 5.321608040201005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6213757', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1291, 'n_words': 621}