How can i disable scroll to previous month in JTAppCalendar?

368 views Asked by At

Now Im using JTAppCalendar 6.0 version,

func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy MM dd"

        let parameters = ConfigurationParameters(startDate: startDate,
                                                 endDate: endDate,
                                                 numberOfRows: 6,
                                                 calendar: testCalendar, // This parameter will be removed in version 6.0
            generateInDates: .forAllMonths,
            generateOutDates: .tillEndOfGrid,
            firstDayOfWeek: .sunday)

        return parameters
    }
1

There are 1 answers

0
Just a coder On

Just make your startDate start at the month you would like to begin scrolling at.