Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Genie effect ipad

Does anyone know is there iPad implementation for Genie animation line on MAC OSx? I would like to create some list on the left side and on an action to make "like OSx" Genie animation to animate moving detail section into list item (like minimizing windows on MAC to the dock icon)

Thanks!

like image 941
zvjerka24 Avatar asked Dec 20 '22 18:12

zvjerka24


2 Answers

The simplest implementation I've found is BCGenieEffect (https://github.com/Ciechan/BCGenieEffect). Not only is the README extremely easy to understand, the actual implementation is just a few lines. Here's an example (found on their README) that displays how to do this simply:

CGRect startRect = CGRectMake(30, 40, 50, 60);
[view genieOutTransitionWithDuration:0.7 
                           startRect:startRect
                           startEdge:BCRectEdgeLeft 
                          completion:nil];

I just used this in a project and it seems very reliable.

like image 92
ebandersen Avatar answered Jan 09 '23 04:01

ebandersen


There is this option. There are many stackoverflow posts about this topic, the standard effect uses private API, but can be found here.

like image 32
Paul de Lange Avatar answered Jan 09 '23 03:01

Paul de Lange