drawRect / Instagram_Stories

Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
MIT License
415 stars 76 forks source link

We cannot move to previous story by swiping left #57

Closed deepak832 closed 5 years ago

deepak832 commented 5 years ago

Describe the bug When we start Story from 2nd Story or any story after 1st from top story list then we can't go to previous Story when do Swipe left

Swipe left story is only working when we go to next by Swipe right and come back by swiping left.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Top Stories'
  2. Click on '2nd Story'
  3. Scroll down to 'Swipe left to go to previous story'
  4. See error

Expected behaviour It should allow to go to previous story in all condition without check that from which story we started timeline/stroy videos view.

boominadhaprakash commented 5 years ago

Hi @deepak832 Thanks for raising the issue. Give us sometime. We will work on it and let you know once we fixed that.

boominadhaprakash commented 5 years ago

Hi @deepak832

We have fixed that issue. Please checkout this branch issues/57 or download the source from this branch and check it out.

If you still face that issue, please let us know.

deepak832 commented 5 years ago

Hi Boominandha,

Thanks for the quick fix, it's working fine. This is a great code in swift, looks very nice to me.

I am trying to add different player instead of AVPlayer, can you pleas assist where/what I should change so it work without much effort.

boominadhaprakash commented 5 years ago

Hi @deepak832 Thanks for your nice words. For player stuff, inside Source folder, you can find IGPlayerView.swift file. If you modify that code, you can implement your own player.

deepak832 commented 5 years ago

Sure will try that.

Thanks for the help and quick fix.