• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a swarm style dismissable view, you can move it around the screen flick it away, or drop it anywhere to dismiss it

CCMPlayNDropView

License APACHE Release

CCMPlayNDropView is an easy to use view that with the help of UIKit dynamics animations it creates an effect similar to that used in the swarm app when dismissing views.

It can be easily integrated with the MaryPopin pod to create a nice in and out animation.

CCMPlayNDrop

===========

Usage

In the storyboard draw a view to your controller and assign it the CCMPlayNDropView class. If you want there is also the possibility to customize some attributes right from the attributes inspector

It has the following delegate methods that you can use to have more control of the flow of your app.

-(void)CCMPlayNDropViewWillStartDismissAnimationWithDynamics:(CCMPlayNDropView *)view;
-(void)CCMPlayNDropViewDidFinishDismissAnimationWithDynamics:(CCMPlayNDropView *)view;
-(void)CCMPlayNDropViewCanceledDismissWithDynamics:(CCMPlayNDropView *)view;
-(void)CCMPlayNDropView:(CCMPlayNDropView *)view willStartDismissCancelAnimationWithDuration:(CGFloat)duration;
-(void)CCMPlayNDropViewDidFinishDismissCancelAnimation:(CCMPlayNDropView *)view;
-(void)CCMPlayNDropViewManualTraslationDidStart:(CCMPlayNDropView *)view;

It is important to know that even though the view moves out of the screen when flicking it or dropping the view, it is not removed from the superview automatically, so you must remember to handle that when CCMPlayNDropViewDidFinishDismissAnimationWithDynamics: gets called

Requirements

Xcode version 6.0 or later.

Installation

Download or clone the repository, and copy the CCMPlayNDropView.h and the CCMPlayNDropView.m files to your project.

Author

Carlos Compean, [email protected]

License

CCMPlayNDropView is available under the Apache License, Version 2.0. See the LICENSE file for more info.