DRPLoadingSpinner icon indicating copy to clipboard operation
DRPLoadingSpinner copied to clipboard

Resume animations from current state when calling startAnimating()

Open pixelmatrix opened this issue 7 years ago • 0 comments

It seems currently when DRPLoadingSpinner's view is removed from the hierarchy the animations are removed which causes it to appear as paused. When resuming the animation via startAnimating() upon viewDidAppear, it starts over from the beginning, which is kind of strange looking in the UI. It would be great if we could have it start from the current state when animating again.

Similarly, it appears that additional calls to startAnimating() will cause it to start over each time. I'm using it in a UITableViewCell and currently have to check whether or not the animations are already running before calling startAnimating(), when it would be more convenient to just always call startAnimating() while configuring the cell for a certain state.

pixelmatrix avatar Jul 19 '17 04:07 pixelmatrix