Animating a UIImageView iOS

You can animate a UIImageView by quickly displaying images on it in a sequence using the UIImageView’s animation properties:

imageView.animationImages = [UIImage(named: "image1")!,
UIImage(named: "image2")!,
UIImage(named: "image3")!,
UIImage(named: "image4")!,
UIImage(named: "image5")!,
UIImage(named: "image6")!,
UIImage(named: "image7")!,
UIImage(named…