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

[BUG] Item's with different size does not work as expected for swipeDirection vertical #322

Open
suhaiyl opened this issue Aug 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@suhaiyl
Copy link

suhaiyl commented Aug 3, 2023

Describe the bug
Item's with different size does not work as expected

To Reproduce

  • try to set different preferred size for items
  • Sample code
  • preferredItemSize(CGSize(width: 300, height: self.page1.index % 2 == 0 ? 350 : 450))

Expected behavior
A clear and concise description of what you expected to happen.
The items should be loaded with size as expected

Screenshots / Videos
If applicable, add screenshots to help explain your problem.

Environment:

  • OSX: [e.g. iOS]
  • Device [e.g. iPhone6]
  • SwiftUIPager version

Additional context
Add any other context about the problem here.

@suhaiyl suhaiyl added the bug Something isn't working label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant