我想在imageView中更改图像时添加动画。
我想看一个像这样的动画https://medium.com/@uthoft.jin/how-to-animate-uicollectionview-using-a-custom-uicollectionviewlayout-a7513add25b2(parallex动画)
我可以在imageView中获得这种效果还是必须使用collectionView?
当前,我使用UIView.transition,但是没有向左/向右移动的选项
UIView.transition(with: self.previewImageView,
duration:0.5,
options: .transitionCrossDissolve,
animations: {self.showWallpaper(index: self.indexWallpaper) },
completion: nil)