Skip to content

Commit

Permalink
Update some small comments to match the behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Mar 30, 2019
1 parent b50350a commit 54fbbda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Storage/FirebaseStorageUI/SDWebImageFIRStorageLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ - (BOOL)canLoadWithURL:(NSURL *)url {
}
// Download the image from Firebase Storage

// TODO: Support progressive image loading using the `GTMSessionFetcher`
// TODO: Support progressive image loading using the `GTMSessionFetcher.downloadedData` anbd `SDImageLoaderDecodeProgressiveImageData`
FIRStorageDownloadTask * download = [storageRef dataWithMaxSize:size
completion:^(NSData * _Nullable data, NSError * _Nullable error) {
if (error) {
Expand Down
2 changes: 1 addition & 1 deletion Storage/FirebaseStorageUI/UIImageView+FirebaseStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ NS_ASSUME_NONNULL_BEGIN

/**
* The current download task, if the image view is downloading an image.
* Must be invoked on the main queue.
*/
@property (nonatomic, readonly, nullable) FIRStorageDownloadTask *sd_currentDownloadTask;

/**
* Sets the image view's image to an image downloaded from the Firebase Storage reference.
* Must be invoked on the main queue.
*
* @param storageRef A Firebase Storage reference containing an image.
*/
Expand Down
4 changes: 2 additions & 2 deletions Storage/FirebaseStorageUI/UIImageView+FirebaseStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#import "UIImageView+FirebaseStorage.h"
#import "SDWebImageFIRStorageLoader.h"

static SDWebImageManager *DefaultFirebaseWebImageManager(void) {
static SDWebImageManager *DefaultWebImageManager(void) {
static dispatch_once_t onceToken;
static SDWebImageManager *manager;
dispatch_once(&onceToken, ^{
Expand Down Expand Up @@ -122,7 +122,7 @@ - (void)sd_setImageWithStorageReference:(FIRStorageReference *)storageRef
mutableContext = [NSMutableDictionary dictionary];
}
if (!mutableContext[SDWebImageContextCustomManager]) {
mutableContext[SDWebImageContextCustomManager] = DefaultFirebaseWebImageManager();
mutableContext[SDWebImageContextCustomManager] = DefaultWebImageManager();
}
if (!mutableContext[SDWebImageContextFIRStorageMaxImageSize]) {
mutableContext[SDWebImageContextFIRStorageMaxImageSize] = @(size);
Expand Down

0 comments on commit 54fbbda

Please sign in to comment.