iOS: fix when reset viewnode cannot reset gradient color
This commit is contained in:
parent
2817be24ec
commit
19fc1fdebe
@ -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;
|
||||
|
Reference in New Issue
Block a user