calendarKit day view swipe detection in day view swift

 Problem:

I want to detect the swipe that user swiped the dayview to next or previous week.How can i achieve that?.No methods are detected for delegate options.

Solution:

func eventsForDate(_ date: Date) -> [CalendarKit.EventDescriptor] {

        if (calenderView.displayDate?.startOfWeek != date.localDate().startOfWeek) {

            dateSelected(date:date.localDate())

            loadData(date: date.localDate()) // use your own function to load the data with the weekview

        } else {

        }

        return []

    }

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift