Skip to content

Commit c7baf47

Browse files
author
Jordan Morgan
authored
Merge pull request #59 from bufferapp/task/zoom-on-backlod
Don't update frames on backload to maintain zoom scalew
2 parents 38efc32 + 0fa2c0e commit c7baf47

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: BFRImageViewController/BFRBackLoadedImageSource.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <Foundation/Foundation.h>
1010
#import <UIKit/UIKit.h>
1111

12-
/*! This class allows you to show an image that you already have available initially, while loading a higher fidelity version in the background which will replace the lower fidelity one. */
12+
/*! This class allows you to show an image that you already have available initially, while loading a higher fidelity version in the background which will replace the lower fidelity one. This class assumes that the new image will have the same aspect ratio as the old one. */
1313
@interface BFRBackLoadedImageSource : NSObject
1414

1515
/*! The image that is available for use right away. */

Diff for: BFRImageViewController/BFRImageContainerViewController.m

-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ - (void)viewDidLoad {
8181
((BFRBackLoadedImageSource *)self.imgSrc).onHighResImageLoaded = ^ (UIImage *highResImage) {
8282
weakSelf.imgLoaded = highResImage;
8383
weakSelf.imgView.image = weakSelf.imgLoaded;
84-
[weakSelf setMaxMinZoomScalesForCurrentBounds];
85-
[weakSelf.view setNeedsLayout];
86-
[weakSelf.view layoutIfNeeded];
8784
};
8885
} else {
8986
[self showError];

0 commit comments

Comments
 (0)