Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to put line on row of week ? #185

Closed
minikool opened this issue Jan 13, 2016 · 14 comments
Closed

How to put line on row of week ? #185

minikool opened this issue Jan 13, 2016 · 14 comments

Comments

@minikool
Copy link

i want to add line on Row of week ? can you help me sir ? thank

@WenchaoD
Copy link
Owner

WenchaoD commented Feb 3, 2016

Will supported this later. Thanks.

@yconst
Copy link

yconst commented Mar 23, 2016

+1 that'd be great for layouting. Thanks for a great library.

@ivanlmc
Copy link

ivanlmc commented Jun 6, 2016

This is a great calendar, and I also need the ability to add line between rows. Thank you!

@h-bomb
Copy link

h-bomb commented Oct 21, 2016

I too would like the to be able to add a week separator (or bottom border on each day cell). Thanks.

@WenchaoD
Copy link
Owner

@h-bomb Would add this soon:)

@WenchaoD
Copy link
Owner

For Objective-C

self.calendar.appearance.separators = FSCalendarSeparatorInterRows;

For Swift

self.calendar.appearance.separators = .interRows

@h-bomb
Copy link

h-bomb commented Jan 7, 2017

Hi @WenchaoD. Does the row separator feature no longer work? I downloaded the latest sample from your master branch and self.calendar.appearance.separators = .interRows no longer places a separator between rows. I did confirm it worked in an earlier example Swift project (from Nov. 7th).

row-separators-missing

Thanks.

@WenchaoD
Copy link
Owner

WenchaoD commented Jan 7, 2017

@h-bomb A mistake happened while trying to rewrite the layout. Try again.

@h-bomb
Copy link

h-bomb commented Jan 9, 2017

Thanks @WenchaoD. That works. Is there any way to customize the separator color?

@renatamakuch
Copy link

@WenchaoD is this possible to change separator color?

@numen31337
Copy link

@xrena @h-bomb Looks like there is no way to do it, I solve it by exposing them like this:

extension FSCalendar {
    var borders: [UIView] {
        guard let bottomBorder = value(forKey: "bottomBorder") as? UIView,
            let topBorder = value(forKey: "topBorder") as? UIView else { return [] }
        return [topBorder, bottomBorder]
    }
}

@renatamakuch
Copy link

@numen31337 not this borders. I want to change color between weeks.

@h-bomb
Copy link

h-bomb commented Sep 5, 2017

@xrena, @numen31337: I sub-classed FSCalendarCell in our project to add (and customize the color of) the cell border.

@aalaaeid
Copy link

Does the row separator feature still not working ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants