-
Notifications
You must be signed in to change notification settings - Fork 55
Description
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