A brief bug description.
Calling calendar.reloadData() in func calendar(_ calendar: FSCalendar, didSelect date: Date) { causes a flicker.
Integration method.
CocoaPods, though I don't believe this is relevant to this issue.
Full steps to reproduce
Add the following method to LoadViewExampleViewController.swift, in the SwiftExample.xcproj:
func calendar(_ calendar: FSCalendar, didSelect date: Date) {
calendar.reloadData()
}
Device modal and iOS version.
Reproducible on the Simulator - iPhone 6S, iOS 10.1
Xcode version
I'm using Xcode 8.1 (8B62)
FSCalendar version
FSCalendar 2.5.0, installed via CocoaPods
Does this happen in the demo project? Which one? Or a link to another demo project.
Yes, this can be reproduced in the demo project, using the instructions above.
My request / recommendation would to be expose a method on FSCalendar to allow refreshing the underlying data for a particular date. When a new date is selected, I need to refresh the originally-set date (to draw a line under it) in addition to updating the look of the newly-selected cell.
Using reloadData() seems to be the only way to do this currently.
A brief bug description.
Calling
calendar.reloadData()infunc calendar(_ calendar: FSCalendar, didSelect date: Date) {causes a flicker.Integration method.
CocoaPods, though I don't believe this is relevant to this issue.
Full steps to reproduce
Add the following method to
LoadViewExampleViewController.swift, in theSwiftExample.xcproj:Device modal and iOS version.
Reproducible on the Simulator - iPhone 6S, iOS 10.1
Xcode version
I'm using Xcode 8.1
(8B62)FSCalendar version
FSCalendar 2.5.0, installed via CocoaPodsDoes this happen in the demo project? Which one? Or a link to another demo project.
Yes, this can be reproduced in the demo project, using the instructions above.
My request / recommendation would to be expose a method on
FSCalendarto allow refreshing the underlying data for a particular date. When a new date is selected, I need to refresh the originally-set date (to draw a line under it) in addition to updating the look of the newly-selected cell.Using
reloadData()seems to be the only way to do this currently.