mosaic-layout icon indicating copy to clipboard operation
mosaic-layout copied to clipboard

UIEdgeInsets is not working properly

Open mbt925 opened this issue 7 years ago • 1 comments

It seems the right inset is not as large as what it should be. I set the same value as the left and right insets. But the right displayed inset is smaller than the left.

mbt925 avatar Jun 20 '17 14:06 mbt925

A quick cheat for this issue I found was to simply change your right constraint on your collection view to be the same spacing you would like for the edge insets. For example I used 3 for my insets, so I adjusted the trailing constraint of my collection view to be 3px away from the view while all the other constraints are touching the view.

VameApp avatar Sep 05 '17 21:09 VameApp