From b7988e3365f2d635cd50eae1f8edd898518f1c77 Mon Sep 17 00:00:00 2001 From: Michael Biggs Date: Tue, 21 Feb 2017 15:00:38 -0700 Subject: [PATCH] Added nullability specifiers --- UIImage+Blur.h | 2 +- UIImage+Resize.h | 12 ++++++------ UIImage+RoundCorners.h | 4 ++-- UIImage+Tinted.h | 8 ++++---- UIImage+fixOrientation.h | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/UIImage+Blur.h b/UIImage+Blur.h index 350e994..94b88cb 100644 --- a/UIImage+Blur.h +++ b/UIImage+Blur.h @@ -27,6 +27,6 @@ @interface UIImage (Blur) --(UIImage *)boxblurImageWithBlur:(CGFloat)blur; +-(nonnull UIImage *)boxblurImageWithBlur:(CGFloat)blur; @end diff --git a/UIImage+Resize.h b/UIImage+Resize.h index a245190..59815e2 100644 --- a/UIImage+Resize.h +++ b/UIImage+Resize.h @@ -31,16 +31,16 @@ */ @interface UIImage (Resize) -+ (UIImage*)resizeImage:(UIImage*)image height:(CGFloat)height; ++ (nonnull UIImage*)resizeImage:(nonnull UIImage*)image height:(CGFloat)height; -+ (UIImage*)resizeImage:(UIImage*)image width:(CGFloat)width; ++ (nonnull UIImage*)resizeImage:(nonnull UIImage*)image width:(CGFloat)width; -+ (UIImage*)resizeImage:(UIImage*)image width:(CGFloat)desiredWidth height:(CGFloat)desiredHeight; ++ (nonnull UIImage*)resizeImage:(nonnull UIImage*)image width:(CGFloat)desiredWidth height:(CGFloat)desiredHeight; -- (UIImage*)resizeWithinHeight:(CGFloat)height; +- (nonnull UIImage*)resizeWithinHeight:(CGFloat)height; -- (UIImage*)resizeWithinWidth:(CGFloat)width; +- (nonnull UIImage*)resizeWithinWidth:(CGFloat)width; -- (UIImage*)resizeWithinWidth:(CGFloat)width height:(CGFloat)height; +- (nonnull UIImage*)resizeWithinWidth:(CGFloat)width height:(CGFloat)height; @end diff --git a/UIImage+RoundCorners.h b/UIImage+RoundCorners.h index fa2ab6b..b727102 100644 --- a/UIImage+RoundCorners.h +++ b/UIImage+RoundCorners.h @@ -29,8 +29,8 @@ @interface UIImage (RoundCorners) -+ (UIImage*)imageNamed:(NSString*)name cornerRadius:(CGFloat)cornerRadius; ++ (nullable UIImage*)imageNamed:(nullable NSString*)name cornerRadius:(CGFloat)cornerRadius; -- (UIImage*)roundedImageWithCornerRadius:(CGFloat)cornerRadius; +- (nullable UIImage*)roundedImageWithCornerRadius:(CGFloat)cornerRadius; @end diff --git a/UIImage+Tinted.h b/UIImage+Tinted.h index 1b04efb..7204245 100644 --- a/UIImage+Tinted.h +++ b/UIImage+Tinted.h @@ -32,10 +32,10 @@ */ @interface UIImage (Tinted) -+ (UIImage *)tintedFlatImageNamed:(NSString *)name colored:(UIColor*)color; -+ (UIImage *)tintedLuminousImageNamed:(NSString *)name colored:(UIColor*)color; ++ (nullable UIImage *)tintedFlatImageNamed:(nullable NSString *)name colored:(nonnull UIColor*)color; ++ (nullable UIImage *)tintedLuminousImageNamed:(nullable NSString *)name colored:(nonnull UIColor*)color; -- (UIImage *)tintedFlatImageUsingColor:(UIColor *)tintColor; -- (UIImage *)tintedLuminousImageUsingColor:(UIColor *)tintColor; +- (nonnull UIImage *)tintedFlatImageUsingColor:(nonnull UIColor *)tintColor; +- (nonnull UIImage *)tintedLuminousImageUsingColor:(nonnull UIColor *)tintColor; @end diff --git a/UIImage+fixOrientation.h b/UIImage+fixOrientation.h index 195b4d1..0fc078c 100644 --- a/UIImage+fixOrientation.h +++ b/UIImage+fixOrientation.h @@ -13,6 +13,6 @@ @interface UIImage (fixOrientation) -- (UIImage *)fixOrientation; +- (nonnull UIImage *)fixOrientation; @end