enter image description here我做到了......如何將圖像從左向右移動?
ivImageLoadingInside.center = CGPoint(x: 25, y: 0)
UIView.animate(withDuration: 2, delay: 0, options: .repeat, animations: {
self.ivImageLoadingInside.center = CGPoint(x: 80, y: 0)
}, completion: nil)
但總是在中途停止。
Here is the image with the animation
感謝您的幫助,男人! –