iOS:fix TextNode cannot switch back to normal style

This commit is contained in:
pengfei.zhou
2021-07-27 17:47:46 +08:00
committed by osborn
parent 83f24e0eb3
commit ba099b6f7e

View File

@@ -110,6 +110,8 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro
}
if (fontDescriptor) {
font = [UIFont fontWithDescriptor:fontDescriptor size:0];
} else {
font = [UIFont systemFontOfSize:view.font.pointSize];
}
view.font = font;
} else if ([name isEqualToString:@"maxWidth"]) {
@@ -200,7 +202,7 @@ - (void)blend:(NSDictionary *)props {
- (void)requestLayout {
[super requestLayout];
[self.textGradientProps also:^(NSDictionary *dict) {
if (CGSizeEqualToSize(self.textGradientSize, self.view.frame.size)) {
return;