Giter Club home page Giter Club logo

ccmplayndropview's Introduction

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.

ccmplayndropview's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.