I’m a huge fan of
transform
property. Combining rotations, translations and scalings is on of the easiest way to modify a shape of aUIView
or aCALayer
. While easy to use, regular transforms are quite limited in what they can achieve – a rectangular shape of a layer can be transformed into an arbitrary quadrilateral. It’s nothing to sneeze at, but there are much more powerful toys out there.This article is focused on mesh transforms. The core idea of a mesh transform is very straightforward: you introduce a set of vertices in the layer then you move them around deforming the entire contents:
Bartosz Ciechanowski
UILabel with a mesh transform applied
Read full article on ciechanowski.me