-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get equal lines (spacing) in Calendar View #1335
Comments
Any chance to get help with this? |
Apologies for the late response. however, if not, the issue you linked to should have the answer. or you can just find the nearest multiple of 7 or a number close to it then when divided by 7, doesnt have a re-occuring value. |
Version: 8.0.3
I'am using the calendar library since a good while and im loving it!
I recently tried my app on iPhone SE (2nd gen), and noticed a strange behaviour.
The separator lines ( the cell insets, which are getting set by using
minimumLineSpacing
andminimumInteritemSpacing
)are altering in size. ( sometimes its the right size sometimes its more)
I have set them both to 0.4. And this is what im talking about.
The calendarView is pinned to trailing and leading, And has a fixed height of 290.
This is the configuration code:
ConfigurationParameters(startDate: startDate, endDate: endDate, numberOfRows: 6, calendar: Calendar.current, generateInDates:InDateCellGeneration.forAllMonths , generateOutDates: OutDateCellGeneration.tillEndOfGrid, firstDayOfWeek: .monday, hasStrictBoundaries: true)
I know this has to do something with UICollectionView described in the issue #1147
My question is how could i solve this problem? Maybe a mathematic calculation for the line size, so that it gives an even number when calculating the cell size. Unfortunatelly i could not come up with a solution for this. I would appretiate some help.
Thank you in advance!
The text was updated successfully, but these errors were encountered: