iOS: fix when reset viewnode cannot reset gradient color

This commit is contained in:
pengfei.zhou 2023-03-15 12:16:53 +08:00 committed by osborn
parent 2817be24ec
commit 19fc1fdebe

View File

@ -934,6 +934,8 @@ - (CAMediaTimingFunction *)translateToTimingFunction:(NSNumber *)timingFunction
- (void)reset {
self.view.backgroundColor = UIColor.clearColor;
self.gradientProps = nil;
self.gradientSize = CGSizeZero;
DoricLayoutType doricLayoutType = self.view.doricLayout.layoutType;
self.view.doricLayout = [[DoricLayout new] also:^(DoricLayout *it) {
it.width = 0;