Skip to content

Commit

Permalink
Merge pull request #55 from Inspirato/develop
Browse files Browse the repository at this point in the history
New Version (3.1.3)
  • Loading branch information
justinvallely authored Aug 4, 2017
2 parents b682a4d + c70d31f commit 351d093
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Master

## 3.1.3 (2017-08-04)

##### Bug Fixes

* cancels swipe to close when dismissing with custom presentation style


## 3.1.2 (2017-08-04)

##### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Nimble (5.0.0)
- SwiftPhotoGallery (3.1.1)
- SwiftPhotoGallery (3.1.2)

DEPENDENCIES:
- Nimble (~> 5.0.0)
Expand All @@ -12,7 +12,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Nimble: 56fc9f5020effa2206de22c3dd910f4fb011b92f
SwiftPhotoGallery: 9c5a97cd312753e388a774fe53a7afd2ee7d78e5
SwiftPhotoGallery: 04fb0fa512ba64deb8fbe4ad3f0d1c289b81c29c

PODFILE CHECKSUM: 74627899640086e825cae05dd62d9b91ec68d132

Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/SwiftPhotoGallery.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/SwiftPhotoGallery/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>3.1.2</string>
<string>3.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Example/Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.1.2</string>
<string>3.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 6 additions & 0 deletions Pod/Classes/SwiftPhotoGallery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,19 @@ public class SwiftPhotoGallery: UIViewController {
}

if animateImageAway {
if self.modalPresentationStyle == .custom {
self.delegate?.galleryDidTapToClose(gallery: self)
return
}

UIView.animate(withDuration: 0.35, animations: {
self.view.alpha = 0
image.center = CGPoint(x: self.view.bounds.midX, y: swipeDistance)
}, completion: { (complete) in
self.delegate?.galleryDidTapToClose(gallery: self)
})
}

}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion SwiftPhotoGallery.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "SwiftPhotoGallery"
s.version = "3.1.2"
s.version = "3.1.3"
s.summary = "Photo gallery for iOS and tvOS written in Swift"
s.description = <<-DESC
"Photo gallery for iOS and tvOS written in Swift. Photos can be panned and zoomed (iOS). Includes a customizable page indicator, support for any orientation (iOS), and supports images of varying sizes. Includes unit tests."
Expand Down

0 comments on commit 351d093

Please sign in to comment.