Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Make UIPageViewControllerDelegate method open
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Wang committed Sep 27, 2016
1 parent c2e8a0f commit 744a8ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions PhotoBrowser/PhotoBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ extension PhotoBrowser {
}

extension PhotoBrowser: UIPageViewControllerDataSource, UIPageViewControllerDelegate {
public func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? {
open func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? {
guard let viewController = viewController as? PhotoPreviewController else {
return nil
}
Expand All @@ -303,7 +303,7 @@ extension PhotoBrowser: UIPageViewControllerDataSource, UIPageViewControllerDele
return preViewController
}

public func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? {
open func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? {
guard let viewController = viewController as? PhotoPreviewController else {
return nil
}
Expand All @@ -323,7 +323,7 @@ extension PhotoBrowser: UIPageViewControllerDataSource, UIPageViewControllerDele
return nextViewController
}

public func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
open func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
if completed {
guard let currentViewController = pageViewController.viewControllers?.last as? PhotoPreviewController else {
return
Expand Down

0 comments on commit 744a8ec

Please sign in to comment.