         PhotoSlider.Photo(imageURL:URL(string:"https://raw.githubusercontent.com/nakajijapan/PhotoSlider/master/Resources/image008.jpg")!, caption: "Japan. \nRice paddy."),
     ]
     
+    var currentRow = 0
+    
     override var prefersStatusBarHidden: Bool {
         return false
     }

        //photoSlider.visibleCloseButton = false
        //photoSlider.visiblePageControl = false
        
        // UIViewControllerTransitioningDelegate
        photoSlider.transitioningDelegate = self
        

        super.traitCollectionDidChange(previousTraitCollection)

        if self.collectionView != nil {
            self.collectionView.contentOffset = CGPoint(x: CGFloat(currentRow) * view.bounds.width, y: 0.0)
        }

    }
    
    func updateCurrentRow(to size: CGSize) {


        var row = Int(round(collectionView.contentOffset.x / collectionView.bounds.width))
        if row < 0 {
            row = 0
        }
        currentRow = row
        
    }
    
    // MARK: - UIContentContainer
