1

I have implemented FSCalendar for dates but I need to hide next previous month labels only. I have marked red in image attached for reference.

actually I have tried all properties but couldn't find it. I know for not showing last month dates I am using calendar.placeholderType = .none but I need to remove next previous month label. like as we are in current month which is MARCH but I dont want to show only label or Title of FEB or APR.

FEB -- MAR -- APR

I am using FSCalendar in swift 5.

FSCalendar

1 Answers1

10

Use Following code will fix you issues:

calendarView.appearance.headerMinimumDissolvedAlpha = 0
Sagar Chauhan
  • 5,715
  • 2
  • 22
  • 56
  • One thing does `FSCalendar` supports next previous button or I have to create my own custom buttons? –  Mar 05 '20 at 06:53
  • 1
    You have to create your own and need to set as per month alignment. – Sagar Chauhan Mar 05 '20 at 07:06
  • just a quick thing if you knows, if I select any date in `FSCalendar` is there any possibility I can change today date label color only. Like today is 5 and what If I selected 2 March then 5 of today title or label color would be of any color like blue. Any idea? –  Mar 05 '20 at 11:02
  • @NewBieMobile Yes it is possible – teja_D Mar 05 '20 at 11:19
  • @teja_D can you please guide me for that ? –  Mar 05 '20 at 11:24
  • @NewBieMobile Ask a question and ping, so I can post some well formatted code. – teja_D Mar 05 '20 at 11:30
  • @teja_D Here's the link: https://stackoverflow.com/questions/60544580/only-change-of-todays-date-label-or-title-color-in-fscalendar-swift –  Mar 05 '20 at 11:39