title: Calculate proper line size in UICollectionview
body: <p>Im using a library called <a href="https://github.com/patchthecode/JTAppleCalendar" rel="nofollow noreferrer">JTAppleCalendar</a> and it uses a CollectionView to draw out the Calendar. I want that my Cells have small lines separating them so i set the <code>calendarView.minimumLineSpacing</code> to 0,4 but what i get is a mismatch of lines (some are thicker than they should be) see in picture<a href="https://i.stack.imgur.com/t9hXs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t9hXs.png" alt="enter image description here" /></a></p>
  <p>My goal is to get equal lines. The width of the Calendar is the device width (in my example 375 (iPhone 12 mini)) and the height is fixed at 295.</p>
  <p>I have researched a lot and, found out that this is some kind of UIKit problem because the cell sizes are not an even number. ( maybe this <a href="https://github.com/patchthecode/JTAppleCalendar/issues/1147#issuecomment-537443452" rel="nofollow noreferrer">issue</a> is also useful )</p>
  <p>Please help me solve this problem.</p>