D-32 / SegmentedProgressBar

Snapchat / Instagram Stories like progress indicator
MIT License
471 stars 56 forks source link

Remove particular segment #9

Open Ruchitdifferenz opened 6 years ago

Ruchitdifferenz commented 6 years ago

I am trying to delete particular data from its index but at that time segmented progress bar not reload or reset , it shows previous index data. please let me know remove data from particular index and move to next.
I had used all functionalities of skip, pause and previous. all these functionalities works awesome.

I want to use this like Instagram stories.

I had trying method for delete is give as below

func delete() { let currentSegment = segments[currentAnimationIndex] currentSegment.topSegmentView.frame.size.width = currentSegment.bottomSegmentView.frame.width let newIndex = max(currentAnimationIndex - 1, 0) if newIndex < self.segments.count { self.delegate?.segmentedProgressBarChangedIndex(index: newIndex) self.animate(animationIndex: newIndex) } else { self.delegate?.segmentedProgressBarFinished() } }

If any changes let me know

D-32 commented 6 years ago

Sadly I don't have any time to help you here. Sorry!

Ruchitdifferenz commented 6 years ago

Thanks for the reply

daniaDlbani commented 6 years ago

Hi @Ruchitdifferenz, Have you managed to do so?

DGP13 commented 6 years ago

Hi @Ruchitdifferenz i'm also work like instagram multiple story if you have any more improvement please help me.

i have also the demo but is not work properly. here is main problem Live video streaming and UIpageviewcontroller is hung.