Quivr / iOS-Week-View

QVRWeekView is a framework which provides a calendar view that can be customized to display between 1 to 7 days in both portrait and landscape mode. Includes customization features to customize colours, fonts and sizes.
MIT License
39 stars 21 forks source link

Remove All Events Not Work!! #14

Closed clbemre closed 5 years ago

clbemre commented 5 years ago

self.allCalendarEvents.removeAll() self.calendarWeekView.loadEvents(withData: nil)

Why are the events still displayed?

reilem commented 5 years ago

If you pass a nil object then no action is performed, this is intended behaviour to allow for default functions to pass nil objects safely without harming the state of the weekview. You must pass an empty array to remove all events. If that doesn't work then something may indeed be broken.

clbemre commented 5 years ago

Okey thank you sir:)