Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Revert "[iOS] Fix the problem that background color should use [UICol…
Browse files Browse the repository at this point in the history
…or clearColor] instance when transparent. (#2943)"

This reverts commit f2786a1.
  • Loading branch information
qianyuan.wqy committed Sep 30, 2019
1 parent 6e38fe3 commit 65e7acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
Expand Up @@ -440,7 +440,7 @@ + (UIColor *)UIColorFromRGBA:(uint32_t)rgba
g = g8 / 255.f;
b = b8 / 255.f;
a = a8 / 255.f;
return a < (0.5 / 255.f) ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
return a < 0.5 ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
}

+ (uint32_t)RGBAColorFromUIColor:(UIColor*)color
Expand Down

0 comments on commit 65e7acb

Please sign in to comment.