Skip to content

Commit

Permalink
fix: fix incorrect nullbility annotation for UIColor+QMUI
Browse files Browse the repository at this point in the history
  • Loading branch information
caoer committed Apr 9, 2019
1 parent b26b805 commit f11d7a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QMUIKit/UIKitExtensions/UIColor+QMUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* 将当前色值转换为hex字符串,通道排序是AARRGGBB(与Android保持一致)
*/
- (nullable NSString *)qmui_hexString;
- (nonnull NSString *)qmui_hexString;

/**
* 获取当前UIColor对象里的红色色值
Expand Down Expand Up @@ -90,7 +90,7 @@
/**
* 计算当前color叠加了alpha之后放在指定颜色的背景上的色值
*/
- (nullable UIColor *)qmui_colorWithAlpha:(CGFloat)alpha backgroundColor:(UIColor *)backgroundColor;
- (nonnull UIColor *)qmui_colorWithAlpha:(CGFloat)alpha backgroundColor:(UIColor *)backgroundColor;

/**
* 计算当前color叠加了alpha之后放在白色背景上的色值
Expand Down Expand Up @@ -129,13 +129,13 @@
/**
* 获取当前系统的默认 tintColor 色值
*/
+ (nullable UIColor *)qmui_systemTintColor;
+ (nonnull UIColor *)qmui_systemTintColor;

/**
* 计算两个颜色叠加之后的最终色(注意区分前景色后景色的顺序)<br/>
* @link http://stackoverflow.com/questions/10781953/determine-rgba-colour-received-by-combining-two-colours @/link
*/
+ (nullable UIColor *)qmui_colorWithBackendColor:(nonnull UIColor *)backendColor frontColor:(nonnull UIColor *)frontColor;
+ (nonnull UIColor *)qmui_colorWithBackendColor:(nonnull UIColor *)backendColor frontColor:(nonnull UIColor *)frontColor;

/**
* 将颜色A变化到颜色B,可通过progress控制变化的程度
Expand Down

0 comments on commit f11d7a0

Please sign in to comment.