Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CollectionView with horizontal scroll direction #14

Closed
syafieqq opened this issue Feb 18, 2020 · 4 comments
Closed

Use CollectionView with horizontal scroll direction #14

syafieqq opened this issue Feb 18, 2020 · 4 comments

Comments

@syafieqq
Copy link

Hi, thanks for the awesome library.
Just one to ask, I use collection view instead of table view, it works well when it is on vertical direction.
But, when I use horizontal direction, it does not goes well, when I swap the collection view to right or left, the sheet keep move along upside and downside sometime., I have used below code, but still does not work.

   override var scrollView: UIScrollView?{
        return collectionView
    }

Thanks.

@OfTheWolf
Copy link
Owner

Hi @syafieqq,

Can you share view hierarchy of the sheet? e.g. UIView -> UICollectionView (Vertical) -> UICollectionViewCell etc..

@syafieqq
Copy link
Author

Here the hierachy:
visual effect view -> view -> collection view (vertical/ horizontal) -> collection view cell -> content (UIView) -> UIImage (width = screen width, height = screen height)

I think if I drag left and right linearly, then it should be no problem.

@OfTheWolf
Copy link
Owner

I couldn't reproduce the problem. Can you share a code sample or video?

@OfTheWolf
Copy link
Owner

you can check the example with horizontal collectionView available after version 1.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants