Vodolazkyi / VACalendar

Custom Calendar for iOS in Swift
MIT License
198 stars 68 forks source link

I am not able to remove particular event (DOT) for a month #24

Open Amster23 opened 5 years ago

Amster23 commented 5 years ago

How I can remove particulars event from calendar ?

I tried to remove event for remove view from superview and also tried reset event data from array after removing selected event

please help me out

umretiya commented 5 years ago

hi, comment the below code from Viewdidload.

    calendarView.setSupplementaries([
        (Date().addingTimeInterval(-(60 * 60 * 70)), [VADaySupplementary.bottomDots([.red, .magenta])]),
        (Date().addingTimeInterval((60 * 60 * 110)), [VADaySupplementary.bottomDots([.red])]),
        (Date().addingTimeInterval((60 * 60 * 370)), [VADaySupplementary.bottomDots([.blue, .darkGray])]),
        (Date().addingTimeInterval((60 * 60 * 430)), [VADaySupplementary.bottomDots([.orange, .purple, .cyan])])
        ])