djk12587 / DJKFlipper

Flipboard like animation library
MIT License
51 stars 13 forks source link

Add ability to change flip from left/right to top/bottom #13

Open sukov opened 6 years ago

djk12587 commented 6 years ago

Kick ass work dude! I'll check out these changes.

I don't use this library personally in any project anymore, which is why it has never received any love or refactoring ever. I always wanted to refactor everything from scratch, as I am not a big fan of my implementation, but I just don't have the time.

sukov commented 6 years ago

Thank you.

I refactored most of the code, but the massive DJKFlipperView needs a lot more refactoring since it's very confusing when a function for example setUpForFlip calls performFlipWithDJKAnimationLayer at the end.

sukov commented 6 years ago

Just a random question, is there any other way of doing this interactive animation beside from using CATransform3DIdentity and CATransaction ?

djk12587 commented 6 years ago

Just a random question, is there any other way of doing this interactive animation beside from using CATransform3DIdentity and CATransaction ?

I think I originally used that because the views are being split in half for the animation layer and static layers. It would be nice to ditch all the layer stuff and just deal with the views, but idk how you can split a uiview in half and manipulate it.