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

Is it possible to curl from left to right currently? #37

Closed
marcpalmer opened this issue Jan 13, 2013 · 3 comments
Closed

Is it possible to curl from left to right currently? #37

marcpalmer opened this issue Jan 13, 2013 · 3 comments

Comments

@marcpalmer
Copy link
Contributor

I can't see how to do this - there doesn't seem to be support for the curl direction - I basically want the inverse of what is there now, like dragging the left page of a two-page spread book in iBooks.

I imagine this "just" means inverting some angles. Do you think it is much work? Any pointers would be much appreciated, and of course I will make pull requests as necessary.

@marcpalmer
Copy link
Contributor Author

Actually, wouldn't it be best if we could make it so that when you start dragging that this sets the direction of the curl - so you can drag from any point near any edge and it will curl in that direction. Then we'd just need a mechanism to set where you permit drags to start - but really this should integrate with UIGestureRecognizer. The built in UIPageViewController stuff uses a UIPanGestureRecognizer. If we could allow customisation of the recognizer used, then you could create one that only responded to certain start regions.

@xissburg
Copy link
Owner

It's possible to curl from any direction. There were a few similar issues people opened in the past:
#12
#15
#27

You just have to rotate the cylinder until the page starts to curl in other direction.

The XBPageDragView needs some code to start the drag based on its relative location on the parent view (the view it curls). Would have to think more about a good mechanism or/and also an API that makes it flexible enough.

@marcpalmer
Copy link
Contributor Author

Thanks for the info. I'll have a play and let you know.

@xissburg xissburg closed this as completed Mar 8, 2013
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

2 participants