djk12587 / DJKFlipper

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

Flip along horizontal axis #2

Closed sunils27 closed 9 years ago

sunils27 commented 9 years ago

Thanks for the great library.

Is it possible to extend this to flip along a horizontal axis as opposed to a vertical axis? If it already exists can you please provide an example/documentation.

Thanks!

djk12587 commented 9 years ago

Hi, someone else had the same question. This library wasn't built with vertical flips in mind so it's not supported as of now. It's on my to do list though.

Below is a link where I go into some detail as to how to implement a vertical flip. https://github.com/djk12587/DJKFlipper/issues/1

sunils27 commented 9 years ago

Hi,

I was wondering if you had any examples with dynamic arrays for the flipView Array?

I'm pretty new to Swift, so I'm still figuring things out.

Thanks, Sunil

On Sun, Aug 9, 2015 at 8:49 PM, djk12587 notifications@github.com wrote:

Hi, someone else had the same question. This library wasn't built with vertical flips in mind so it's not supported as of now. It's on my to do list though.

Below is a link where I go into some detail as to how to implement a vertical flip.

1 https://github.com/djk12587/DJKFlipper/issues/1

— Reply to this email directly or view it on GitHub https://github.com/djk12587/DJKFlipper/issues/2#issuecomment-129270879.

djk12587 commented 9 years ago

By dynamic array do you mean an array that is not type specific?

In my example the flipperViewArray is an array of UIViewController types. If you wanted to you could use an array of UIViews instead or an NSMutableArray and put whatever type/subclass of UIView you want. The DJKFlipperView class only needs a collection of UIViews to work, how you serve DJKFlipperViews the UIViews is up to you.

sunils27 commented 9 years ago

Thanks for your reply. I'm getting the hang of it now.

Sunil

On Tue, Aug 25, 2015 at 7:59 AM, djk12587 notifications@github.com wrote:

By dynamic array do you mean an array that is not type specific?

In my example the flipperViewArray is an array of UIViewController types. If you wanted to you could use an array of UIViews instead or an NSMutableArray and put whatever type/subclass of UIView you want. The DJKFlipperView class only needs a collection of UIViews to work, how you serve DJKFlipperViews the UIViews is up to you.

— Reply to this email directly or view it on GitHub https://github.com/djk12587/DJKFlipper/issues/2#issuecomment-134577703.