All Projects → zoonooz → Zfdragablemodaltransition

zoonooz / Zfdragablemodaltransition

Licence: mit
Custom animation transition for present modal view controller

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Zfdragablemodaltransition

Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (-29.82%)
Mutual labels:  transition
Phaser State Transition
State transition plugin for Phaser.js
Stars: ✭ 169 (-93.2%)
Mutual labels:  transition
Droidmotion
🏂 Implementation of a simple android motion
Stars: ✭ 200 (-91.95%)
Mutual labels:  transition
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (-26.56%)
Mutual labels:  transition
Starwars.android
This component implements transition animation to crumble view into tiny pieces.
Stars: ✭ 1,942 (-21.85%)
Mutual labels:  transition
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (-17.55%)
Mutual labels:  transition
Css Animation 101 Cn
学习如何为你的 Web 程序添加动效
Stars: ✭ 132 (-94.69%)
Mutual labels:  transition
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+0.36%)
Mutual labels:  transition
Materialtransitionanimation
Material Animations practice which is inspired from
Stars: ✭ 165 (-93.36%)
Mutual labels:  transition
Decktransition
A library to recreate the iOS Apple Music now playing transition
Stars: ✭ 2,207 (-11.19%)
Mutual labels:  transition
Kwdrawercontroller
Drawer view controller that easy to use!
Stars: ✭ 154 (-93.8%)
Mutual labels:  transition
Aisphereview
A wonderful 3D animation
Stars: ✭ 160 (-93.56%)
Mutual labels:  transition
Cssanimation.io
CSS Animation Library for Developers and Ninjas
Stars: ✭ 176 (-92.92%)
Mutual labels:  transition
Cpcollectionviewkit
Interesting UICollectionView layouts and transitions
Stars: ✭ 140 (-94.37%)
Mutual labels:  transition
Visualizer
UI-Router state visualizer and transition visualizer
Stars: ✭ 205 (-91.75%)
Mutual labels:  transition
Transitionhelper
This is a simple util to create Activity transition animation
Stars: ✭ 1,653 (-33.48%)
Mutual labels:  transition
React Reveal Text
✨ A small react library for animating the revealing of text.
Stars: ✭ 171 (-93.12%)
Mutual labels:  transition
Transition
Easy interactive interruptible custom ViewController transitions
Stars: ✭ 2,566 (+3.26%)
Mutual labels:  transition
Marshroute
Marshroute is an iOS Library for making your Routers simple but extremely powerful
Stars: ✭ 208 (-91.63%)
Mutual labels:  transition
Atgmediabrowser
Image slide-show viewer with multiple predefined transition styles, with ability to create new transitions with ease.
Stars: ✭ 186 (-92.52%)
Mutual labels:  transition

ZFDragableModalTransition

Version License Platform

Usage

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    TaskDetailViewController *detailViewController = segue.destinationViewController;
    detailViewController.task = sender;

    // create animator object with instance of modal view controller
    // we need to keep it in property with strong reference so it will not get release
    self.animator = [[ZFModalTransitionAnimator alloc] initWithModalViewController:detailViewController];
    self.animator.dragable = YES;
    self.animator.direction = ZFModalTransitonDirectionBottom;
    [self.animator setContentScrollView:detailViewController.scrollview];

    // set transition delegate of modal view controller to our object
    detailViewController.transitioningDelegate = self.animator;

    // if you modal cover all behind view controller, use UIModalPresentationFullScreen
    detailViewController.modalPresentationStyle = UIModalPresentationCustom;
}

###ScrollView If you have scrollview in the modal and you want to dismiss modal by drag it, you need to set scrollview to ZFModalTransitionAnimator instance.

[self.animator setContentScrollView:detailViewController.scrollview];

###Direction You can set that which direction will our modal present. (default is ZFModalTransitonDirectionBottom)

self.animator.direction = ZFModalTransitonDirectionBottom;

P.S. Now you can set content scrollview only with ZFModalTransitonDirectionBottom

Requirements

  • iOS >= 7.1
  • ARC

Installation

ZFDragableModalTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ZFDragableModalTransition"

FAQ

How can I show modal only part of view ?

The current ViewController's view still visible behind the modal, so you just set transparent color to background view.

Author

Amornchai Kanokpullwad, @zoonref

Swift Version

by @dimohamdy ZFDragableModalTransitionSwift

License

ZFDragableModalTransition is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].