swift3 - Animation position on Multiple Image -
sorry i'm newbie swift3. have ten images need random in 1 slot , move @ same speed. view set clipstobounds = true
here i've tried far
uiview.animate(withduration: 0.2, delay: 0, options: [.repeat], animations: { image1.frame = cgrect(x: 0, y: 240, width: new_width, height: new_height) }, completion: nil) uiview.animate(withduration: 0.2, delay: 0.2, options: [.repeat], animations: { image2.frame = cgrect(x: 0, y: 240, width: new_width, height: new_height) }, completion: nil)
please help!!
Comments
Post a Comment