The bug happens on both my own project and the iOS example project in this library (version 7.1.6).
I used Xcode10, and iPad Pro (9.7-inch, simulator) & iPhone8 (simulator) for testing. This bug does not happen in the previous version (7.1.5).
Please take a look at the iOS example project in this library. @patchthecode








I have the same Problem when switching from portrait to landscape on iPad with Version 7.1.6
will take a look
can you paste me the code you used on rotation?
@gsuthor
@mock123
I used just constraints with a height constraint for the Calendar View that is changed in viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator). I also tried calenderView.layoutSubviews but it doesn't work.
In Version 7.1.5 it was working.
@gsuthor
yes. but what is the code you have in that viewWillTransition function?
Can you try this in there?
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
let ds = calendarView.visibleDates()
calendarView.viewWillTransition(to: .zero, with: coordinator, anchorDate: ds.monthDates.first?.date)
}
With the code above, it worked like a charm for me! @patchthecode
Yes it worked with the code above. Big Thanks @patchthecode
cool.closing issue
Most helpful comment
@gsuthor
yes. but what is the code you have in that viewWillTransition function?
Can you try this in there?