FSCalendar
FSCalendar copied to clipboard
Hide Bottom Border After Header
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.
-
calendar.clipsToBounds = true
-
calendar.bottomBorder.isHidden = true
-
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](https://user-images.githubusercontent.com/33082834/34658739-5b474500-f46c-11e7-913f-9521a87742bb.png)
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).
Hey @NicholasMata, thank you for replying. Will I get the updates by doing pod update?
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 thanks mate!
@NicholasMata whats your branch called ?
Bump!
It says it's enough to assign calendar.clipsToBounds = true
but it doesn't work. I still see borders.
Uuse appearance.headerSeparatorColor