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

pagerView.itemSize and pagerView.interitemSpacing not working #366

Open
dimpy-iroid opened this issue Aug 2, 2023 · 0 comments
Open

pagerView.itemSize and pagerView.interitemSpacing not working #366

dimpy-iroid opened this issue Aug 2, 2023 · 0 comments

Comments

@dimpy-iroid
Copy link

dimpy-iroid commented Aug 2, 2023

This is my code:

self.selectedImagesPagerView.transformer = FSPagerViewTransformer(type: .linear)
self.selectedImagesPagerView.itemSize = CGSize(width: self.selectedImagesPagerView.frame.width, height: self.selectedImagesPagerView.frame.height)
self.selectedImagesPagerView.interitemSpacing = 10

Hello, I am having trouble achieving a 9:16 ratio in my FSPagerViewCell, which has both an image and a button on it. I have tried setting the itemSize to CGSize(width: self.selectedImagesPagerView.frame.width, height: self.selectedImagesPagerView.frame.height) but it doesn't seem to be working. Additionally, the button on the image is not appearing. interitemSpacing of 10 is also not working. Could you please assist me with this issue? Thank you.

Expected Result:
Frame 2169

Achieved Result:
Simulator Screen Recording - iPhone 14 Pro - 2023-08-02 at 15.48.22.mp4.zip

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

1 participant