WenchaoD / FSCalendar

A fully customizable iOS calendar library, compatible with Objective-C and Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

month scope showing too many weeks

mallikarjuna0308 opened this issue · comments

Hi @WenchaoD,
I need your help.
I want to show calendar with previous month and next month dates along with current month but I don't any extra weeks to be shown. But the calendar is showing 6 weeks by default.
For e.g. If current month starts on Monday, the calendar should show from 1st of that month rather it showing previous month whole week.
I don't want to use "calendar.placeholderType = .none" as I want to display dates of previous month or next month if the current month ends in the middle of the week.
For better illustration, I have enclosed an image.
Screenshot 2021-04-14 at 8 12 28 AM

Hi...I found the solution for my above problem.
"calendar.placeholderType = .fillHeadTail"
fixed my issue.
Thank you. 😊