Swift 3 Event handlers for calendar?

Thread is closed for posting
2 posts, 0 answers
  1. James
    James avatar
    16 posts
    Member since:
    Jan 2012

    Posted 19 Dec 2016 Link to this post

        Good Afternoon


    This is the handler I have a question about

      func calendar(calendar: TKCalendar, eventsForDate date: Date) -> [AnyObject]? {



    I am getting messages 'Instance method xxxxxx nearly matches optional requirement. What is the correct method I want to implement? Id recommend you guys to a look at the documentation. It might be a little outdated.


    Thanks in advance.

  2. Adrian
    Adrian avatar
    174 posts

    Posted 20 Dec 2016 Link to this post

    Hi James,

    Thank you for writing.
    Thank you for bringing our attention to this issue. Indeed the method signature is outdated in the documentation and we are going to fix it. Here is the correct signature:
    func calendar(_ calendar: TKCalendar, eventsFor date: Date) -> [Any]? {
    I hope this helps.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top