luispadron / UICircularProgressRing

A circular progress bar for iOS written in Swift
MIT License
1.73k stars 290 forks source link

If i want to pause animation for some time how can i do that? #36

Closed maulik6994 closed 7 years ago

maulik6994 commented 7 years ago

READ BEFORE POSTING AN ISSUE

Not following these guidelines may result in me ignoring or closing your issue, please carefully read and submit an appropriate issue as it helps with time and fixes.

Please provide the current version of the library you are using

Have you read the documentation?

Is it a bug? Provide the following

Is it a question? Provide the following

Is it a feature request? Provide the following

If you have read all of this please follow the template and post the issue. Thanks for using UICiruclarProgressRing.

luispadron commented 7 years ago

Please follow the guideline, instead of just posting it again...

You cannot currently stop the animation for a specific amount of time. You can try to call setProgress with a value of zero for animation duration which will immediately jump to that value and stop animating.

maulik6994 commented 7 years ago

I want to Pause that Animation for some time and after that i want resume that from position where we left(pause)

Your help will admire..

Thanking you

On 28 April 2017 at 18:48, Luis Padron notifications@github.com wrote:

Please follow the guideline, instead of just posting it again...

You cannot currently stop the animation for a specific amount of time. You can try to call setProgress with a value of zero for animation duration which will immediately jump to that value and stop animating.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/luispadron/UICircularProgressRing/issues/36#issuecomment-297995334, or mute the thread https://github.com/notifications/unsubscribe-auth/AZt4JS1YPwoqlwssxxHPnS4XtqJBm-Moks5r0ectgaJpZM4NLWHW .

-- Regards, Maulik Prajapati +91 8141267162

luispadron commented 7 years ago

I already answered your question. You cannot do this with just the library.

Look into NSTimer, and TimeInterval. Read the above comment and that is how you could pause it.