* [ios] bugfix animation bounds
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8d4407a4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8d4407a4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8d4407a4 Branch: refs/heads/0.11-dev Commit: 8d4407a4b07e6c7b38a304d5a8e22d73d76f02f6 Parents: 15b3a41 Author: acton393 <[email protected]> Authored: Tue Mar 14 20:31:33 2017 +0800 Committer: acton393 <[email protected]> Committed: Tue Mar 14 20:31:33 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8d4407a4/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m index 4527979..88ad63b 100644 --- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m +++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m @@ -84,6 +84,10 @@ _animationInfo.target.view.layer.backgroundColor = (__bridge CGColorRef _Nullable)(_animationInfo.toValue); } else if ([_animationInfo.propertyName isEqualToString:@"opacity"]) { _animationInfo.target.view.layer.opacity = [_animationInfo.toValue floatValue]; + } else if ([_animationInfo.propertyName isEqualToString:@"bounds"]) { + if(strcmp([_animationInfo.toValue objCType], @encode(CGRect)) == 0) { + _animationInfo.target.view.layer.bounds = [_animationInfo.toValue CGRectValue]; + } } }
