I'm using CABasicAnimation for layer animations. In convenience initializer init(keyPath:) I specify which values I want to animate, but I do it mostly intuitively. I mean, I know that it should animate layer's position.x, for example, so I use that value. But where can I find the complete list of values? I checked the documentation for both the initializer and CABasicAnimation and found just some examples of values.
The resource you are looking for is the Key-Value Coding Extensions page of the Core Animation Programming Guide.
There are additions for properties of the types
For point properties you can use
.y. For example:
"position.x" // use a number
For size properties you can use
.height. For example:
"shadowOffset.height" // use a number
For rectangle properties you can use
size, as well as the point and size additions on those. For example:
"bounds.origin.x" // use a number "frame.size.width" // use a number "frame.origin" // use a point
Core Animation transform properties have additions for
.z). For example:
"transform.rotation.z" // use a number "transform.translation.x" // use a number
You can also just use
.scale as a number that scales uniformly on all axis,
.rotation as a number for the rotation around the z-axis (same as
.translation as a size that translates along the x- and y-axis.