@@ -87,7 +87,7 @@ open class RIGImageGalleryViewController: UIPageViewController {
8787 setViewControllers ( [ UIViewController ( ) ] , direction: . forward, animated: animated, completion: nil )
8888 return
8989 }
90- let newView = RIGSingleImageViewController ( viewerItem : images [ currentImage] )
90+ let newView = createNewPage ( for : images [ currentImage] )
9191 let direction : UIPageViewControllerNavigationDirection
9292 if self . currentImage < currentImage {
9393 direction = . forward
@@ -162,7 +162,7 @@ open class RIGImageGalleryViewController: UIPageViewController {
162162 super. viewWillAppear ( animated)
163163 updateBarStatus ( animated: false )
164164 if currentImage < images. count {
165- let photoPage = RIGSingleImageViewController ( viewerItem : images [ currentImage] )
165+ let photoPage = createNewPage ( for : images [ currentImage] )
166166 setViewControllers ( [ photoPage] , direction: . forward, animated: false , completion: nil )
167167 }
168168 }
@@ -301,7 +301,7 @@ private extension RIGImageGalleryViewController {
301301 navigationController? . setToolbarHidden ( navigationBarsHidden, animated: animated)
302302 navigationController? . setNavigationBarHidden ( navigationBarsHidden, animated: animated)
303303 setNeedsStatusBarAppearanceUpdate ( )
304- UIView . animate ( withDuration: 0.15 , animations: {
304+ UIView . animate ( withDuration: 0.2 , animations: {
305305 self . currentImageViewController? . scrollView. baseInsets = self . scrollViewInset
306306 } )
307307 }
0 commit comments