Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 6a86db3

Browse files
committed
Fix the nullability of animatedImage property, it can be nullable in some cases.
1 parent 75167e9 commit 6a86db3

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ Carthage/Build
3434
# `pod install` in .travis.yml
3535
#
3636
Example/Pods
37+
Podfile.lock

Example/Podfile.lock

Lines changed: 0 additions & 31 deletions
This file was deleted.

SDWebImageFLPlugin/Classes/FLAnimatedImageBridge/SDFLAnimatedImage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextPredra
3030
@interface SDFLAnimatedImage : UIImage <SDAnimatedImage>
3131

3232
/**
33-
The `FLAnimatedImage` instance for GIF representation. This property should be nonnull.
33+
The `FLAnimatedImage` instance for GIF representation. This property typically be nonnull if you init the image with the following methods. However, it will be null when you call super method like `initWithCGImage:`
3434
*/
35-
@property (nonatomic, strong, nonnull, readonly) FLAnimatedImage *animatedImage;
35+
@property (nonatomic, strong, nullable, readonly) FLAnimatedImage *animatedImage;
3636

3737
/**
3838
Create the wrapper with specify `FLAnimatedImage` instance. The instance should be nonnull.

0 commit comments

Comments
 (0)