Skip to content

Remove particular segment  #9

Description

@Ruchitdifferenz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions