Currently view controller is cropped to the size of imageContainer (becouse it has a larger frame).
My proposal is to set the padding for the preview just before commit, imageViewFrame to match the final targetPreviewView size, and in animateProgress just play with scale transforms.
After this the preview looks more like the original one.
Currently view controller is cropped to the size of imageContainer (becouse it has a larger frame). My proposal is to set the padding for the preview just before commit, imageViewFrame to match the final targetPreviewView size, and in animateProgress just play with scale transforms.
After this the preview looks more like the original one.