I am new to swift and I have some images that animated in one imageView, now I want to save it in gallery as we save simple image, How can I do that?
imageView.animationImages = [
UIImage(named:"1.jpg")!,
UIImage(named:"2.jpg")!,
UIImage(named:"3.jpg")!,
UIImage(named:"4.jpg")!,
UIImage(named:"5.jpg")!
]
imageView.animationDuration = 3
imageView.startAnimating()
Any kind of Help will be appreciated...(:
Convert your GIF image into data and then you can write that data to Photo library:
I hope this could be useful for you.