Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 0632c66

Browse files
authored
Add a feature table to the readme. (#104)
1 parent 042eb8c commit 0632c66

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,45 @@
77
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/MotionAnimator.svg)](https://cocoapods.org/pods/MotionAnimator)
88
[![Platform](https://img.shields.io/cocoapods/p/MotionAnimator.svg)](http://cocoadocs.org/docsets/MotionAnimator)
99

10-
10+
<table>
11+
<tr><td>🎉</td><td>Implicit and explicit additive animations.</td></tr>
12+
<tr><td>🎉</td><td>Parameterized motion with the <a href="https://github.com/material-motion/motion-interchange-objc">Interchange</a>.</td></tr>
13+
<tr><td>🎉</td><td>Provide velocity to animations directly from gesture recognizers.</td></tr>
14+
<tr><td>🎉</td><td>Maximize frame rates by relying more on Core Animation.</td></tr>
15+
<tr><td>🎉</td><td>Animatable properties are Swift enum types.</td></tr>
16+
<tr><td>🎉</td><td>Consistent model layer value expectations.</td></tr>
17+
</table>
18+
19+
The following properties can be implicitly animated using the MotionAnimator on iOS 8 and up:
20+
21+
<table>
22+
<tr><td>CALayer <tt>anchorPoint</tt></td></tr>
23+
<tr><td>CALayer <tt>backgroundColor</tt></td><td>UIView <tt>backgroundColor</tt></td></tr>
24+
<tr><td>CALayer <tt>bounds</tt></td><td>UIView <tt>bounds</tt></td></tr>
25+
<tr><td>CALayer <tt>borderWidth</tt></td></tr>
26+
<tr><td>CALayer <tt>borderColor</tt></td></tr>
27+
<tr><td>CALayer <tt>cornerRadius</tt></td></tr>
28+
<tr><td>CALayer <tt>height</tt></td><td>UIView <tt>height</tt></td></tr>
29+
<tr><td>CALayer <tt>opacity</tt></td><td>UIView <tt>alpha</tt></td></tr>
30+
<tr><td>CALayer <tt>position</tt></td><td>UIView <tt>center</tt></td></tr>
31+
<tr><td>CALayer <tt>rotation</tt></td><td>UIView <tt>rotation</tt></td></tr>
32+
<tr><td>CALayer <tt>scale</tt></td><td>UIView <tt>scale</tt></td></tr>
33+
<tr><td>CALayer <tt>shadowColor</tt></td></tr>
34+
<tr><td>CALayer <tt>shadowOffset</tt></td></tr>
35+
<tr><td>CALayer <tt>shadowOpacity</tt></td></tr>
36+
<tr><td>CALayer <tt>shadowRadius</tt></td></tr>
37+
<tr><td>CALayer <tt>transform</tt></td><td>UIView <tt>transform</tt></td></tr>
38+
<tr><td>CALayer <tt>width</tt></td><td>UIView <tt>width</tt></td></tr>
39+
<tr><td>CALayer <tt>x</tt></td><td>UIView <tt>x</tt></td></tr>
40+
<tr><td>CALayer <tt>y</tt></td><td>UIView <tt>y</tt></tr>
41+
<tr><td>CALayer <tt>z</tt></td></td></tr>
42+
<tr><td>CAShapeLayer <tt>strokeStart</tt></td></tr>
43+
<tr><td>CAShapeLayer <tt>strokeEnd</tt></td></tr>
44+
</table>
45+
46+
Note: any animatable property can also be animated with MotionAnimator's explicit animation APIs, even if it's not listed in the table above.
47+
48+
> Is a property missing from this list? [We welcome pull requests](https://github.com/material-motion/motion-animator-objc/edit/develop/src/MDMAnimatableKeyPaths.h)!
1149
1250
## Example apps/unit tests
1351

0 commit comments

Comments
 (0)