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 determine current calendar height #404

Closed
wmensah opened this issue Aug 31, 2016 · 1 comment
Closed

How to determine current calendar height #404

wmensah opened this issue Aug 31, 2016 · 1 comment

Comments

@wmensah
Copy link

wmensah commented Aug 31, 2016

self.calendar.frame.height returns the same value for when the calendar's scope is Month and when the scope is Week. I'd expect the height to be smaller when the calendar's scope is Week but self.calendar.frame.height doesn't seem to return the correct value. How do I determine the height of the calendar when the scope changes? Thanks.

@wmensah
Copy link
Author

wmensah commented Aug 31, 2016

Never mind. The new height is passed in the bounds argument forfunc calendar(calendar: FSCalendar, boundingRectWillChange bounds: CGRect, animated: Bool)

@wmensah wmensah closed this as completed Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant