Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Commit a2e6e3a

Browse files
committed
Delete PageLoadable
1 parent 6f2140b commit a2e6e3a

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

Pod/Classes/PagingViewController.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ extension PagingViewController: ViewCleanable {
252252
}
253253
}
254254

255-
extension PagingViewController: PageLoadable {
256-
func shouldLoad(page: Int) -> Bool {
255+
// MARK: Page Control
256+
257+
extension PagingViewController {
258+
fileprivate func shouldLoad(page: Int) -> Bool {
257259
switch (options.menuControllerSet, options.lazyLoadingPage) {
258260
case (.single, _),
259261
(_, .one):
@@ -273,16 +275,16 @@ extension PagingViewController: PageLoadable {
273275
return true
274276
}
275277

276-
func isVisible(controller: UIViewController) -> Bool {
278+
fileprivate func isVisible(controller: UIViewController) -> Bool {
277279
return self.childViewControllers.contains(controller)
278280
}
279281

280-
func hideVisibleControllers() {
282+
fileprivate func hideVisibleControllers() {
281283
guard shouldWaitForLayout() else { return }
282284
visibleControllers.forEach { $0.view.alpha = 0 }
283285
}
284286

285-
func showVisibleControllers() {
287+
fileprivate func showVisibleControllers() {
286288
guard shouldWaitForLayout() else { return }
287289
visibleControllers.forEach { $0.view.alpha = 1 }
288290
}

Pod/Classes/Protocols/PageLoadable.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)