Chapter 5. Layer Transforms

In This Chapter

Scale Transform

Using -rotateTransform:

Using -rotate3DTransform:

Anchor Points

Combining Transforms

Scale Versus Bounds

Up to this point, we have discussed how to move elements around the screen, change their color, and various other interesting effects. In this chapter, we take that quite a bit further. Transforms is a catchall to describe applying a matrix transform to a layer for some startling results.

What is a transform? A transform is a term used to include any function that alters the size, position, or rotation of an object, in our case a layer. Transforms scale a layer up or down and rotate a layer along one or more planes. Transforms are applied using a matrix function that ...

Get Core Animation: Simplified Animation Techniques for Mac now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.