DLAutoSlidePageViewController
Demo
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
DLAutoSlidePageViewController requires iOS 10.0 and Swift 4.0 or above.
Installation
CocoaPods
PageViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DLAutoSlidePageViewController"Swift Package Manager
To integrate using Swift Package Manager, add the following as a dependency to your Package.swift:
.package(url: "https://github.com/DeluxeAlonso/DLAutoSlidePageViewController.git", .upToNextMajor(from: "1.0.2"))Usage
- Create an instance of a
DLAutoSlidePageViewControllerand provide it with an array of View controllers.
let firstVC = storyboard?.instantiateViewController(withIdentifier: 'FirstVC')
let secondVC = storyboard?.instantiateViewController(withIdentifier: 'SecondVC')
let pages = [firstVC, secondVC]
let pageViewController = DLAutoSlidePageViewController(pages: pages,
timeInterval: 3.0,
transitionStyle: .scroll,
interPageSpacing: 0.0)
addChildViewController(pageViewController)
containerView.addSubview(pageViewController.view)
pageViewController.view.frame = containerView.bounds- You can also access the UIPageControl through the
pageControlproperty.
pageViewController.pageControl.currentPageIndicatorTintColor = UIColor.lightGray
pageViewController.pageControl.pageIndicatorTintColor = UIColor.gray
pageViewController.pageControl.backgroundColor = UIColor.clearAuthor
Alonso Alvarez, alonso.alvarez.dev@gmail.com
License
DLAutoSlidePageViewController is available under the MIT license. See the LICENSE file for more info.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

