I'm trying to do an image cropping feature with perspective correction. I've had success with using CIFilter CIPerspectiveCorrection.
My question is: how do I animate from original image to my cropped image (with the correction)?
layer.filters is not supported for iOS as per documentation.
I'm thinking maybe CATransform3D is the way to go, but I'm not familiar with transforms and matrices.
I'm looking for the same animation like cropping in CamScanner app.

Found a way, but kinda brute way to go at it. What I did was to create multiple images interpolated from initial image and final image, then added a
CAKeyFrameAnimation.Having issue with incrementing values so I had to hardcode every point. Works fine, and looked good. Although the overhead from creating
CGImages is noticeable, especially if more frames are generated.Hopefully, Apple will support
layer.filterson iOS in the future.