Skip to content

Commit

Permalink
Also check SwiftyGif currentImage property. Fixes #140
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGorman committed Dec 13, 2019
1 parent 7b55d3e commit 7914831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Agrume.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Agrume"
s.version = "5.3.6"
s.version = "5.3.7"
s.summary = "An iOS image viewer written in Swift."
s.swift_version = "5.0"

Expand Down
2 changes: 1 addition & 1 deletion Agrume/AgrumeCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ extension AgrumeCell: UIGestureRecognizerDelegate {

private func updateScrollViewAndImageViewForCurrentMetrics() {
scrollView.frame = contentView.frame
if let image = imageView.image {
if let image = imageView.image ?? imageView.currentImage {
imageView.frame = resizedFrame(forSize: image.size)
}
scrollView.contentSize = imageView.frame.size
Expand Down

0 comments on commit 7914831

Please sign in to comment.