XBPageCurl icon indicating copy to clipboard operation
XBPageCurl copied to clipboard

ibook like peeling to the next view .

Open winmhtun opened this issue 11 years ago • 2 comments

Hi there,

Awesome library ! I am trying to implement a feature which is like an ibook peeling animation. I want to entirely peel off the first screen when a user drags a curlview for more than 50%. Could you please suggest me how to achieve this ?

Thanks.

winmhtun avatar Jun 19 '13 02:06 winmhtun

I've been looking at this recently myself. I would suggest either:

1.) Using XBCurlView and managing cylinder position yourself. 2.) Using XBPageDragView, subclass it (or just edit it) and change the touchesBegan/Moved/Ended functions to move the curl position more than it currently does, possibly based off of the curlView width. You'll need to detect the direction of the drag in order for things to work well.

#2 is probably the easiest/best way to go.

matt-curtis avatar Jun 19 '13 02:06 matt-curtis

Thanks for your help . I am gonna try it out :+1:

winmhtun avatar Jun 19 '13 02:06 winmhtun