DottedProgressBar icon indicating copy to clipboard operation
DottedProgressBar copied to clipboard

Issue going back to zero progress.

Open stewartboyd119 opened this issue 8 years ago • 5 comments

While using a hacked up version of your code to mimic the dots used in passcode entry, I was trying to set the progress back to zero. This lead to an invalid state. I believe there might be times where a progress bar (not just my hacky use case) would need to return back to zero progress. I think updating line 161 to be "if nextAnimation.value >= 0" would fix this issue (instead of > 0).

image

stewartboyd119 avatar Jul 03 '17 12:07 stewartboyd119

Hello, Thanks for this wonderful library,

I'm clearly not using any hacked up versions of Dotted Progress Bar.. Only problem I've is : How to set the progress bar BACK to zero, Once the progress is done ? I tried with : self.progressBar.setProgress(0, animated: true) it didn't worked.

Then by removing it from the superview and re-adding (it with all the same configurations ) worked. But thats not the appropriate solution.

Any help is appreciated.. 🙏🏻

yashbedi avatar Jun 06 '18 11:06 yashbedi

@yashbedi have you got any fix? I am facing issue as I have to set progress back to 0 on some event.

poojab avatar Apr 26 '19 10:04 poojab

Hey @poojab, We removed the library.!

yashbedi avatar Apr 27 '19 13:04 yashbedi

Ohh okay. but what is other solution for such progress bar?

poojab avatar May 02 '19 08:05 poojab

By removing it from the superview and re-adding (it with all the same configurations ) worked. But thats not the appropriate solution. Handling all programmatically.

yashbedi avatar May 02 '19 10:05 yashbedi