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
414 stars 76 forks source link

Bugfix/story collection view constraint #130

Closed tiskender2 closed 2 years ago

tiskender2 commented 2 years ago

PR Details

bugfix for story preview

Description

when next user story is visible by automatically and if you use iphone X and above, story cell's _view's top constraint is broken. I fixed it tested on ios 15

Motivation and Context

Why is this change required?
_view doesn't have constraint, calculating its height by screen size height, and its caused an issue on iphone X and above. What problem does it solve? i added constraint to (_view: IGStoryPreviewView) and problem Solved

boominadhaprakash commented 2 years ago

Hi @tiskender2

Thank you for your valuable time and creating this pull request. We will review the changes and merge your pull request.

tiskender2 commented 2 years ago

sorry for closed but i made new changes to make it better