Some problem in animation

I use UIView.Animation in swift to transition one imageView to another in UIViewController.but the problem is the animation is not between the two imageView but the whole View become to animation .how should I do to solve this problem.

hello, your “to” transition should be to self.frontImage instead of self.contentContainer

NO,contentContainner contain one imageView and a label, when the user press the button, the backImageView transition to this conterntContainer.

then self.contentContainer.frontImage to just transition the image

the problem is still the same.

zip up your project and upload in a file sharing service so we can take a better look at it