diff --git a/RIGImageGallery.podspec b/RIGImageGallery.podspec
index b0f6151..24455f2 100644
--- a/RIGImageGallery.podspec
+++ b/RIGImageGallery.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RIGImageGallery"
- s.version = "0.3.0"
+ s.version = "0.3.1"
s.summary = "An image gallery view controller designed to work with the Raizlabs Interface Guidelines for iOS."
s.description = <<-DESC
diff --git a/RIGImageGallery/Assets/Info.plist b/RIGImageGallery/Assets/Info.plist
index f42ccf5..7e82fe1 100644
--- a/RIGImageGallery/Assets/Info.plist
+++ b/RIGImageGallery/Assets/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 0.3.0
+ 0.3.1
CFBundleSignature
????
CFBundleVersion
diff --git a/RIGImageGallery/RIGImageGalleryViewController.swift b/RIGImageGallery/RIGImageGalleryViewController.swift
index 5a34cb8..b80c66e 100644
--- a/RIGImageGallery/RIGImageGalleryViewController.swift
+++ b/RIGImageGallery/RIGImageGalleryViewController.swift
@@ -87,7 +87,7 @@ open class RIGImageGalleryViewController: UIPageViewController {
setViewControllers([UIViewController()], direction: .forward, animated: animated, completion: nil)
return
}
- let newView = RIGSingleImageViewController(viewerItem: images[currentImage])
+ let newView = createNewPage(for: images[currentImage])
let direction: UIPageViewControllerNavigationDirection
if self.currentImage < currentImage {
direction = .forward
@@ -162,7 +162,7 @@ open class RIGImageGalleryViewController: UIPageViewController {
super.viewWillAppear(animated)
updateBarStatus(animated: false)
if currentImage < images.count {
- let photoPage = RIGSingleImageViewController(viewerItem: images[currentImage])
+ let photoPage = createNewPage(for: images[currentImage])
setViewControllers([photoPage], direction: .forward, animated: false, completion: nil)
}
}
@@ -301,7 +301,7 @@ private extension RIGImageGalleryViewController {
navigationController?.setToolbarHidden(navigationBarsHidden, animated: animated)
navigationController?.setNavigationBarHidden(navigationBarsHidden, animated: animated)
setNeedsStatusBarAppearanceUpdate()
- UIView.animate(withDuration: 0.15, animations: {
+ UIView.animate(withDuration: 0.2, animations: {
self.currentImageViewController?.scrollView.baseInsets = self.scrollViewInset
})
}
diff --git a/RIGImageGalleryDemo/Assets/Info.plist b/RIGImageGalleryDemo/Assets/Info.plist
index 2a537b6..09a664a 100644
--- a/RIGImageGalleryDemo/Assets/Info.plist
+++ b/RIGImageGalleryDemo/Assets/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 0.3.0
+ 0.3.1
CFBundleSignature
????
CFBundleVersion