This repository was archived by the owner on Aug 19, 2024. It is now read-only.
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
duplicate progress bar issue #120
Open
Description
Hi @ranmyfriend @boominadhaprakash i facing duplicate progress bar issue when start story from particular snap
below are some change that i did
in cellForItemAt
i have change these thing
nStoryIndex = indexPath.item
pickedStoryIndex = story?.lastPlayedSnapIndex ?? 0
lastPlayedSnapIndex
we are storing at backend
and in willDisplay
method did below changes
if story_copy == nil {
let s = stories.stories[nStoryIndex+handPickedStoryIndex]
cell.willDisplayCellForZerothIndex(with: s.lastPlayedSnapIndex ?? 0)
return
}
if indexPath.item == nStoryIndex {
let s = stories.stories[nStoryIndex+handPickedStoryIndex]
cell.willDisplayCell(with: s.lastPlayedSnapIndex ?? 0)
}
pls let me if did anything wrong. the duplicate progress is not shown randomly i am not to reproduce it with particular scenario