iOS:fix GradientLayer
This commit is contained in:
parent
f3c8d1be31
commit
e4e5103d7b
@ -140,7 +140,11 @@ - (void)blend:(NSDictionary *)props {
|
||||
[self afterBlended:props];
|
||||
[self transformProperties];
|
||||
[self requestLayout];
|
||||
self.gradientLayer.frame = CGRectMake(0, 0, self.view.width, self.view.height);
|
||||
[self.gradientLayer also:^(CAGradientLayer* it) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
it.frame = CGRectMake(0, 0, self.view.width, self.view.height);
|
||||
});
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)afterBlended:(NSDictionary *)props {
|
||||
|
Reference in New Issue
Block a user