Skip to content

pagerView.itemSize and pagerView.interitemSpacing not working #366

@dimpy-iroid

Description

@dimpy-iroid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions