FSCalendar icon indicating copy to clipboard operation
FSCalendar copied to clipboard

Hide Bottom Border After Header

Open shyeoh opened this issue 6 years ago • 7 comments

A brief bug description. How to remove the bottom border after header? I am currently using pagingEnabled = false. I've tried every possible methods below, but all doesn't seems to be working.

  1. calendar.clipsToBounds = true
  2. calendar.bottomBorder.isHidden = true
  3. calendar.bottomBorder.backgroundColor = .clear

Integration method. cocoapods

Full steps to reproduce. By using pagingEnabled = false.

Device modal and iOS version. iPhone 6 iOS8.4 (Simulator)

Xcode version. Xcode 9.2

FSCalendar version. 2.7.9

Does this happen in the demo project? Which one? Or a link to another demo project. N/A in demo project.

screen shot 2018-01-08 at 12 05 02 pm

shyeoh avatar Jan 08 '18 04:01 shyeoh

Under FSCalendarStickyHeader class looks like there is a bottomBorder view which is what you are seeing. To change the color you have to change #define FSCalendarStandardLineColor located under FSCalendarConstants.h. I will fork and then pr back into repo, to add in functionality so you can set this color in FSCalendar (since I would like the option to remove/change border as well).

NicholasMata avatar Jan 10 '18 08:01 NicholasMata

Hey @NicholasMata, thank you for replying. Will I get the updates by doing pod update?

shyeoh avatar Jan 10 '18 08:01 shyeoh

That is up to developer WenchaoD he will have to accept pull request and then release a new version in the mean time the solution mentioned above changing line 52 in FSCalendarConstants.h to something like this for transparent #define FSCalendarStandardLineColor [[UIColor lightGrayColor] colorWithAlphaComponent:0.00]

NicholasMata avatar Jan 10 '18 08:01 NicholasMata

@NicholasMata thanks mate!

shyeoh avatar Jan 10 '18 14:01 shyeoh

@NicholasMata whats your branch called ?

JulesMoorhouse avatar Aug 09 '18 21:08 JulesMoorhouse

Bump! It says it's enough to assign calendar.clipsToBounds = true but it doesn't work. I still see borders.

image

image

cihadturhan avatar Jun 14 '19 07:06 cihadturhan

Uuse appearance.headerSeparatorColor

dongminlim88 avatar Jul 12 '21 07:07 dongminlim88