How to generate video from images but with animation

I want to generate a video from some images and that video should have some animation while changing one image to another.

is it possible with UIView.transition(with:duration:options:animations:completion:) ? If it possible, then how can I achieve this ?

How to generate video from images but with animation
 
 
Q