FSCalendar icon indicating copy to clipboard operation
FSCalendar copied to clipboard

is it possible to keep the weekday labels view in the top for all the months?

Open isunilapps opened this issue 7 years ago • 5 comments

Need in urgency

  • is it possible to keep the weekday title labels view in the top for all the months? For each month it is having weekday title labels view at the top of the month which is looking odd.

I am using

  • Integration method.cocoapods
  • Xcode version : Xcode 8.3.3
  • FSCalendar version : The latest one only
glass_and_iphone_se_ _ios_10_3__14e8301_

isunilapps avatar Oct 24 '17 09:10 isunilapps

+1

abdulla-allaith avatar Oct 25 '17 08:10 abdulla-allaith

+1

kimyxl avatar Jan 30 '18 02:01 kimyxl

+1 Or just hide them

anysome avatar Mar 22 '18 08:03 anysome

+1 so 有人实现了吗?

bruceWangDev avatar Nov 01 '18 05:11 bruceWangDev

Yes, I was able to achieve this. You can take the reference of the calendarWeekdayView and then constraint it to the top of your calendar programmatically.

Eg-

  1. let fixedView = self.fscalendarView.calendarWeekdayView 2 . self.containerView.addSubView(fixedView) 3 . //Now add constraints programatically.
  2. self.containerView.layoutIfNeeded()
  3. self.fsCalendarView.weekdayHeight = 0 //To hide the weekdayviews for all months

gurpreetKobe avatar Apr 21 '22 12:04 gurpreetKobe