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

            pagingView.isPagingEnabled = false
        }
    }
}

// MARK: - UICollectionViewDataSource
extension RDImageViewerController : UICollectionViewDataSource
{
    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return numberOfPages
    }

        
        return cell
    }
//}
//
//// MARK: - UICollectionViewDelegateFlowLayout
//extension RDImageViewerController : UICollectionViewDelegateFlowLayout
//{
    public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        let data = contents[indexPath.row]
        return data.size(inRect: collectionView.bounds, direction: pagingView.scrollDirection, traitCollection: traitCollection, isDoubleSpread: isDoubleSpread)
    }
//}
//
//// MARK: - PagingViewDelegate
//extension RDImageViewerController: PagingViewDelegate
//{
    open func pagingView(pagingView: PagingView, willChangeIndexTo index: PagingView.VisibleIndex) {
        switch index {
        case let .single(index):
