Search code examples
swiftuiscrollviewuicollectionviewcelluicollectionviewlayout

Last horizontal collectionview cell is half displeyed


I have horizontal CollectionView and when i start the app last image in my gallery was only half-displayed. How to fix that?


Solution

  • The easiest solution it so add some bottom "inset" value.

    To do that

    1. In your xcode's "utility area" click on "size inspector" tab
    2. Then refer the image below

    xcode's ScrollView