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

Collapse the calander #389

Closed
saiidabs opened this issue Aug 22, 2016 · 3 comments
Closed

Collapse the calander #389

saiidabs opened this issue Aug 22, 2016 · 3 comments

Comments

@saiidabs
Copy link

saiidabs commented Aug 22, 2016

how do i collapse and open the calander on scroll up and down? like your example in the gifs

Edit*
i found out it was just setting (calendar.scopeGesture.enabled = true) , but it doesnt work with the new version, you have to set it to ( calendar.showsScopeHandle = true) , but i want it to work work the same without showing the handle

@WenchaoD
Copy link
Owner

showsScopeHandle = true is not necessary. See this example:
image

@saiidabs
Copy link
Author

im looking at that example. its the ScopeHandleViewController class, and it uses
calendar.scopeGesture.enabled = YES;
but it doesn't work in your new version

@palKaran
Copy link

I know it's too late to reply but the solution is

let panGesture = UIPanGestureRecognizer(target: self.calendar, action: #selector(self.calendar.handleScopeGesture(_:)))
self.calendar.addGestureRecognizer(panGesture)

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

3 participants