How to remove days in FSCalendar Swift library

2019-09-06 06:34发布

问题:

i'm using FSCalendar and want to remove days (Sun, mon, Tue, Wed, Thu, Fri, and Sat) from calendar

for now i only change the color to clear

calendarView.appearance.weekdayTextColor = UIColor.clear

回答1:

You can hide/remvove days from calendar using calendarWeekdayView.

Hide

calendarView.calendarWeekdayView.isHidden = true

Remove

calendarView.calendarWeekdayView.removeFromSuperview()


回答2:

This library contains the property to handle this condition

self.calendar.weekdayHeight = 0

and this will remove the days header.