Skip to content
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
@forTJ555

Description

@forTJ555

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
Uploading Simulator Screen Shot - iPhone 11 - 2021-01-06 at 19.03.27.png…

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions