Skip to content

Commit fea42ed

Browse files
committed
Update the comments of Firebase Storage UI usage
1 parent ef4ea27 commit fea42ed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Storage/FirebaseStorageUI/UIImageView+FirebaseStorage.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@
2121

2222
NS_ASSUME_NONNULL_BEGIN
2323

24+
25+
/**
26+
* Integrates SDWebImage async image loading and Firebase Storage with UIImageView.
27+
*
28+
* @code
29+
// Reference to an image file in Firebase Storage
30+
FIRStorageReference *reference = [storageRef child:@"images/stars.jpg"];
31+
32+
// UIImageView in your ViewController
33+
UIImageView *imageView = self.imageView;
34+
35+
// Placeholder image
36+
UIImage *placeholderImage;
37+
38+
// Load the image using SDWebImage
39+
[imageView sd_setImageWithStorageReference:reference placeholderImage:placeholderImage];
40+
* @endcode
41+
*/
2442
@interface UIImageView (FirebaseStorage)
2543

2644
/**

0 commit comments

Comments
 (0)