Skip to content

Commit a823f05

Browse files
author
Michael Skiba
authored
Merge pull request #20 from Raizlabs/hotfix/All_paths_use_overrde_for_gallery_item_creation
make sure all page creation flows use “createNewPage”
2 parents 84e975d + 5714740 commit a823f05

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

RIGImageGallery.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RIGImageGallery"
3-
s.version = "0.3.0"
3+
s.version = "0.3.1"
44
s.summary = "An image gallery view controller designed to work with the Raizlabs Interface Guidelines for iOS."
55

66
s.description = <<-DESC

RIGImageGallery/Assets/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.3.0</string>
18+
<string>0.3.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

RIGImageGallery/RIGImageGalleryViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

RIGImageGalleryDemo/Assets/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.3.0</string>
18+
<string>0.3.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)