richardtop / CalendarKit

📅 Calendar for Apple platforms in Swift
https://www.youtube.com/watch?v=cJ63-_z1qg8
MIT License
2.54k stars 343 forks source link

DayViewDelegate methods always Overriding non-@objc declarations from extensions #261

Closed ramesh09ios closed 4 years ago

ramesh09ios commented 4 years ago

New Issue Checklist

Issue Description

Xcode: Version 11.3 issue:- 1) Overriding non-@objc declarations from extensions is not supported 2) Value of type 'EventView' has no member 'data' 3) How to Customise EventViews

Code I'm using with CalendarKit

[INSERT CODE HERE]
extension CalendarScheduleVC {
    override func dayViewDidSelectEventView(_ eventview: EventView) {
      print("Event has been selected: \(eventview.data)")
    }

    override func dayViewDidLongPressEventView(_ eventView: EventView) {
      print("Event has been longPressed: \(eventView.data)")
    }
}

Result I am trying to achieve

[INSERT API OR UI MOCKUPS HERE]

richardtop commented 4 years ago

Hi, answering your questions:

  1. That's it. To fix the issue, move the methods you override back to the class declaration.
  2. Issue will be solved when the 1st one is solved
  3. Not currently supported, issue created to track it: #175. What kind of customizations are you interested in (please, provide a design mockup).