SwiftGif icon indicating copy to clipboard operation
SwiftGif copied to clipboard

How to stop animating?

Open zhanswift opened this issue 8 years ago • 7 comments

I need only one cycle animating, how do to this?

zhanswift avatar Dec 02 '16 04:12 zhanswift

@zhanswift This is covered in Wiki.

totocaster avatar Dec 05 '16 01:12 totocaster

@tiwariammit Maybe this code help to you imageView.animationRepeatCount = 1

zhanswift avatar Jun 07 '17 10:06 zhanswift

yes i got the solution already. By the way thank

tiwari1amrit avatar Jun 07 '17 10:06 tiwari1amrit

See the wiki: https://github.com/bahlo/SwiftGif/wiki/Extended-use for stop the animation after certain animation count.

vyasdarshan avatar Mar 05 '18 11:03 vyasdarshan

@tiwariammit Can you please post your solution

EnesGuerisik avatar May 13 '18 19:05 EnesGuerisik

@EnesGuerisik hello i didn't use this library. I have animated the collection of images and shown as like gif image.

tiwari1amrit avatar May 14 '18 03:05 tiwari1amrit

As I will use a gif only once for a (post)launchscreen, is there a way to stop the gif (loopcount =1) without embedding a framework ? when I see your solution in extended use, the method doesn't seem to get the same properties as the initial example

ghost avatar Oct 12 '18 19:10 ghost