Update README.md

This commit is contained in:
Brandon Withrow
2017-08-09 11:51:02 -07:00
committed by GitHub
parent 3d41ca895c
commit e2365eead5

View File

@@ -289,6 +289,12 @@ animationView2.setValue(UIColor.green, forKeypath: "BG-On.Group 1.Fill 1.Color",
animationView3.setValue(UIColor.red, forKeypath: "BG-On.Group 1.Fill 1.Color", atFrame: 0)
animationView4.setValue(UIColor.orange, forKeypath: "BG-On.Group 1.Fill 1.Color", atFrame: 0)
```
```objective-c
[animationView2 setValue:[UIColor greenColor]
forKeypath:@"BG-On.Group 1.Fill 1.Color"
atFrame:@0];
```
The keyPath is a dot separated path of layer and property names from After Effects.
LOTAnimationView provides `- (void)logHierarchyKeypaths` which will recursively log all settable keypaths for the animation.
![Key Path](_Gifs/aftereffectskeypath.png)