Skip to content

Commit

Permalink
Merge pull request #20 from Raizlabs/hotfix/All_paths_use_overrde_for…
Browse files Browse the repository at this point in the history
…_gallery_item_creation

 make sure all page creation flows use “createNewPage”
  • Loading branch information
Michael Skiba authored Jan 9, 2017
2 parents 84e975d + 5714740 commit a823f05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RIGImageGallery.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion RIGImageGallery/Assets/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.3.0</string>
<string>0.3.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 3 additions & 3 deletions RIGImageGallery/RIGImageGalleryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -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
})
}
Expand Down
2 changes: 1 addition & 1 deletion RIGImageGalleryDemo/Assets/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.3.0</string>
<string>0.3.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit a823f05

Please sign in to comment.