We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to show name of month between month sections? Like Section header
The text was updated successfully, but these errors were encountered:
1- Add: public protocol YMCalendarDateDelegate: AnyObject{ func pageChanged(date: Date) } inside YMCalendarView. 2- After that add: public weak var delegateDate: YMCalendarDateDelegate? inside YMCalendarView. 3- After add: delegateDate?.pageChanged(date: dateAt(indexPath)) Inside private func monthRowView(at indexPath: IndexPath) -> YMMonthWeekView before return. 4- In your ViewDidLoad add: calendarView.delegateDate = self 5- and add: extension YourViewController: YMCalendarDateDelegate{ func pageChanged(date: Date) { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMMM yyyy" self.labelMonthName.text = dateFormatter.string(from: date).capitalized } }
public protocol YMCalendarDateDelegate: AnyObject{ func pageChanged(date: Date) }
public weak var delegateDate: YMCalendarDateDelegate?
delegateDate?.pageChanged(date: dateAt(indexPath))
private func monthRowView(at indexPath: IndexPath) -> YMMonthWeekView
calendarView.delegateDate = self
extension YourViewController: YMCalendarDateDelegate{ func pageChanged(date: Date) { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMMM yyyy" self.labelMonthName.text = dateFormatter.string(from: date).capitalized } }
Enjoy
Sorry, something went wrong.
No branches or pull requests
Is it possible to show name of month between month sections? Like Section header
The text was updated successfully, but these errors were encountered: