FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

No control of CollectionView contentInsets for custom sized items.

Open MussaCharles opened this issue 2 years ago • 2 comments

Hi, first thanks for the great tool, I have been trying to change contentInsets for items with custom size with no success. So far for 1 full screen item there is no problem, but item sizes smaller than full screen seems to be centered with huge left & right contentInsets, Please see a screenshot below from the sample app.

Image 2021-09-02 at 2 04 PM

I need to reduce the left inset dx to a small value eg 16px, At first I thought I could simply change the contentInsets internally but it doesn't seem to work. Is there any work-around on how control those insets without having to fork the project and dive into the implementation details? thanks

@WenchaoD

MussaCharles avatar Sep 02 '21 05:09 MussaCharles

@MussaCharles did you find any solution?

iHamzaaK avatar Sep 05 '21 17:09 iHamzaaK

@iHamzaaK I didn't have time to dive into the implementation details of this library but I was able to get a quick alternative solution which gave me results closer to my design specs, 👉 Here

MussaCharles avatar Sep 05 '21 17:09 MussaCharles