mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)
* Add some warn_unused_result attributes * Add more * Add some more
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#import <UIKit/UIImage.h>
|
||||
#import <UIKit/UIBezierPath.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -33,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
+ (UIImage *)as_resizableRoundedImageWithCornerRadius:(CGFloat)cornerRadius
|
||||
cornerColor:(UIColor *)cornerColor
|
||||
fillColor:(UIColor *)fillColor;
|
||||
fillColor:(UIColor *)fillColor AS_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* This generates a flat-color, rounded-corner resizeable image with a border
|
||||
@@ -48,7 +49,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
cornerColor:(UIColor *)cornerColor
|
||||
fillColor:(UIColor *)fillColor
|
||||
borderColor:(nullable UIColor *)borderColor
|
||||
borderWidth:(CGFloat)borderWidth;
|
||||
borderWidth:(CGFloat)borderWidth AS_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* This generates a flat-color, rounded-corner resizeable image with a border
|
||||
@@ -67,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
borderColor:(nullable UIColor *)borderColor
|
||||
borderWidth:(CGFloat)borderWidth
|
||||
roundedCorners:(UIRectCorner)roundedCorners
|
||||
scale:(CGFloat)scale;
|
||||
scale:(CGFloat)scale AS_WARN_UNUSED_RESULT;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user