Sample affine view transformations on iOS