             pagingView.isPagingEnabled = false
         }
     }
-}
-
-// MARK: - UICollectionViewDataSource
-extension RDImageViewerController : UICollectionViewDataSource
-{
+//}
+//
+//// MARK: - UICollectionViewDataSource
+//extension RDImageViewerController : UICollectionViewDataSource
+//{
     public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
         return numberOfPages
     }

            }
        }
    }
}

extension RDImageViewerController: PagingViewDataSource
{
    open func pagingView(pagingView: PagingView, preloadItemAt index: Int) {
        let data = contents[index]
        if data.isPreloadable() && !data.isPreloading() {

    open func pagingView(pagingView: PagingView, cancelPreloadingItemAt index: Int) {
        
    }
//}
//
//extension RDImageViewerController
//{
    @objc func scrollDidEnd() {
        NSObject.cancelPreviousPerformRequests(withTarget: self)
        interfaceBehaviour.updateLabel(label: pageHud.label, pagingView: pagingView, denominator: numberOfPages)
    }
//}
//
//// MARK: - ViewController
//extension RDImageViewerController
//{
    override open var prefersStatusBarHidden: Bool {
        return statusBarHidden
    }
