VACalendar icon indicating copy to clipboard operation
VACalendar copied to clipboard

How to delete all supplementaries?

Open ATrotsenko opened this issue 6 years ago • 1 comments

Hi! When I receive a data I need to update calendar supplementaries, but if I received empty data and set supplementaries with the empty array, days not updated and dots are visible. How can I remove all dots if a data is empty? Thanks.

ATrotsenko avatar Jan 09 '19 22:01 ATrotsenko

Here is a hotfix. Pass an empty arrary to ".bottomDots" property. Sample code is bellow.

calendarView.setSupplementaries([ (Date().addingTimeInterval(-(60 * 60 * 70)), [VADaySupplementary.bottomDots([])]) ])

I hope it helps you. Thanks.

RaghavaNaidu46 avatar Oct 10 '19 06:10 RaghavaNaidu46