Swiftpack.co - hyperoslo/Pages as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hyperoslo.
hyperoslo/Pages 2.0.2
:page_facing_up: UIPageViewController made simple
⭐️ 497
🕓 2 years ago
iOS
.package(url: "https://github.com/hyperoslo/Pages.git", from: "2.0.2")

⚠️ DEPRECATED, NO LONGER MAINTAINED

Pages logo

CI Status Version Carthage Compatible Swift License Platform

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

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

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

let pages = PagesController([viewController1, viewController2])

Demo

untitled

Installation

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

pod 'Pages'

Pages is also available through Carthage. To install just write into your Cartfile:

github "hyperoslo/Pages"

Author

Hyper, [email protected]

License

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

GitHub

link
Stars: 497
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2.0.2
6 years ago

Expose methods to @objc when needed https://github.com/hyperoslo/Pages/pull/52

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics