Skip to content
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

Vertical line between cells that cannot be killed with calendarView.minimumInteritemSpacing = 0 #1147

Closed
Opryatnov opened this issue Oct 2, 2019 · 10 comments
Assignees

Comments

@Opryatnov
Copy link

Opryatnov commented Oct 2, 2019

Version Number: 8.0.2

#I have a vertical line between cells that cannot be killed with calendarView.minimumInteritemSpacing = 0#

#it is necessary to select the date range and fill the entire selected range with any color, and make the background color of the collection view different from the painted color#

#vertical line between cells not displayed when set to 0 in method calendarView.minimumInteritemSpacing #

#a temporary solution is to set the left and right indentation of the view, which plays the role of a selector in -1#

https://monosnap.com/file/gHRpgqp098KH9veyPssyKvlenNn9cG

@patchthecode
Copy link
Owner

This issue is a UICollectionView issue.
Does this help?

screen shot 2018-08-29 at 8 25 05 am

@Opryatnov
Copy link
Author

Thank you for response!
I think, that it isn't a UICollectionView issue, because I set background color for month section and different cell background color. In that case I don't have any offsets. But when I added some view on my cell I had the problem that I described above

@patchthecode
Copy link
Owner

can you let me know what the width of you calendar is?
You can pause you simulator, and go to the UI debugger. Then click on the calendar, and tell me the size of the frame width.

@Opryatnov
Copy link
Author

Yes, i can:
Pls:
UIWindow: W - 414, H - 896
CalendarView: W - 414, H - 697.33
https://monosnap.com/file/eQzQgwoV2NRFwPjrAUiBRy8xDg6yjn

@patchthecode
Copy link
Owner

as a test can you set the width to 413.98 and see if the lines go away?
This is just a test.

@Opryatnov
Copy link
Author

as a test can you set the width to 413.98 and see if the lines go away?
This is just a test.

I tried to reduce the width to the specified size - it got even worse, all dates in the range began to be separated by vertical lines. I use for tests (iphone 8, iphone Xmax)

@patchthecode
Copy link
Owner

patchthecode commented Oct 4, 2019

is you app open?
if possible can you give me a sample app with code which reproduces what you are seeing?

If possible, please strip the app so that there are no unnecessary code. Just the bare minimum.

@jappleseed69
Copy link

I'm also experiencing this issue with the below code segment in my viewWillAppear

calendar.minimumInteritemSpacing = 0
calendarWidthConstraint.constant = view.frame.width -  view.frame.width.truncatingRemainder(dividingBy: 7)
calendar.cellSize = calendarWidthConstraint.constant / 7

@jappleseed69
Copy link

Nevermind! The issue was that my selectedView wasn't filling up the entire day cell!

@patchthecode
Copy link
Owner

patchthecode commented Oct 19, 2019

@Opryatnov assuming this issue is resolved.
If it is not, then please respond to the last question asked to you.
I will re-open this issue when you do.
I have set the awaiting-response flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants