Skip to content

Commit

Permalink
[ASDKFastImageNamed] Fixes nullability of UIImage initializers (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhillc authored and maicki committed Apr 28, 2018
1 parent e67b892 commit f16e05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/UIImage+ASConvenience.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param imageName The name of the image to load
* @return The loaded image or nil
*/
+ (UIImage *)as_imageNamed:(NSString *)imageName NS_RETURNS_RETAINED;
+ (nullable UIImage *)as_imageNamed:(NSString *)imageName NS_RETURNS_RETAINED;

/**
* A version of imageNamed that caches results because loading an image is expensive.
Expand All @@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param traitCollection The traits associated with the intended environment for the image.
* @return The loaded image or nil
*/
+ (UIImage *)as_imageNamed:(NSString *)imageName compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection NS_RETURNS_RETAINED;
+ (nullable UIImage *)as_imageNamed:(NSString *)imageName compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection NS_RETURNS_RETAINED;

@end

Expand Down

0 comments on commit f16e05e

Please sign in to comment.