All Projects → nathanwhy → Hyawesometransition

nathanwhy / Hyawesometransition

Licence: mit
Custom transition between viewcontrollers

Projects that are alternatives of or similar to Hyawesometransition

Aicustomviewcontrollertransition
Easy and tidy way for creating custom UIViewController transitions for iOS
Stars: ✭ 130 (-64.67%)
Mutual labels:  transition, viewcontroller
Transition
Easy interactive interruptible custom ViewController transitions
Stars: ✭ 2,566 (+597.28%)
Mutual labels:  transition, viewcontroller
SHTransition
SHTransition is a simple library for viewcontroller transition animation in swift.
Stars: ✭ 35 (-90.49%)
Mutual labels:  transition, viewcontroller
Youtube-Pagination-ProgressBar
Youtube app uses a nice ProgressBar for pagiantion.The ProgressBar goes down using transition and then dissapear when the process ends,so I created a Custom ProgresBar as youtube app has.
Stars: ✭ 25 (-93.21%)
Mutual labels:  transition
Guillotinemenu Android
Neat library, that provides a simple way to implement guillotine-styled animation
Stars: ✭ 2,743 (+645.38%)
Mutual labels:  transition
Crazydaily
[开源项目] 一款程序员日常放松的App,基于Material Design + MVP-Clean + Weex + Flutter + RxJava2 + Retrofit + Dagger2 + Glide + Okhttp + MTRVA + BRVAH + 炫酷控件 + 炫酷动画
Stars: ✭ 294 (-20.11%)
Mutual labels:  transition
Onboardkit
Customisable user onboarding for your iOS app
Stars: ✭ 334 (-9.24%)
Mutual labels:  viewcontroller
dsim.cljc
Idiomatic and purely functional discrete event-simulation
Stars: ✭ 81 (-77.99%)
Mutual labels:  transition
Kmnavigationbartransition
A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles while pushing or popping a view controller for all orientations. And you don't need to write any line of code for it, it all happens automatically.
Stars: ✭ 3,274 (+789.67%)
Mutual labels:  transition
Viewpagertransition
viewpager with parallax pages, together with vertical sliding (or click) and activity transition
Stars: ✭ 3,017 (+719.84%)
Mutual labels:  transition
Gtsheet
An easy to integrate solution for presenting UIViewControllers in a bottom sheet
Stars: ✭ 282 (-23.37%)
Mutual labels:  transition
Sheet
📑 Actionsheet with navigation features such as the Flipboard App
Stars: ✭ 264 (-28.26%)
Mutual labels:  transition
Tltransitions
快速实现控制器的转场和View的快速popover显示,并支持自定义动画、手势退场
Stars: ✭ 296 (-19.57%)
Mutual labels:  transition
Transitionexample
a demo of Transition Framework
Stars: ✭ 257 (-30.16%)
Mutual labels:  transition
Awesome Engineering Team Management
👔 How to transition from software development to engineering management
Stars: ✭ 319 (-13.32%)
Mutual labels:  transition
vue-smooth-height
Transition an elements height in response to data changes
Stars: ✭ 40 (-89.13%)
Mutual labels:  transition
Jsqwebviewcontroller
[Deprecated] A lightweight Swift WebKit view controller for iOS
Stars: ✭ 307 (-16.58%)
Mutual labels:  viewcontroller
Snackview
Customizable bottom-half alerts.
Stars: ✭ 280 (-23.91%)
Mutual labels:  viewcontroller
Swipetransition
Allows trendy transitions using swipe gesture such as "swipe back anywhere".
Stars: ✭ 272 (-26.09%)
Mutual labels:  transition
React Css Transition Replace
A React component to animate replacing one element with another.
Stars: ✭ 288 (-21.74%)
Mutual labels:  transition

HYAwesomeTransition

Custom transition between viewcontrollers.

The idea comes from gewara(格瓦拉).

Programming in Swift? Switch to Swift branch

screenshot

Requirements

iOS 7.0 +

Example

self.awesometransition = [[HYAwesomeTransition alloc] init];
self.awesometransition.duration = 2.0f;
self.awesometransition.containerBackgroundView = customView;
[self.awesometransition registerStartFrame:startFrame
                                finalFrame:finalFrame
                            transitionView:cell];

[self presentViewController:vc animated:YES completion:^{
        vc.avatar.hidden = NO;
}];

Implement UIViewControllerTransitioningDelegate and this delegate method:

- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
    self.awesometransition.present = YES;
    return self.awesometransition;
}

- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
    self.awesometransition.present = NO;
    return self.awesometransition;
}

If you use UINavigationController,you have to implement UINavigationControllerDelegate instead of UIViewControllerTransitioningDelegate, but interactive gesture is not suppored yet.

- (id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
                                   animationControllerForOperation:(UINavigationControllerOperation)operation
                                                fromViewController:(UIViewController *)fromVC
                                                  toViewController:(UIViewController *)toVC{
    if (operation != UINavigationControllerOperationPush) {
        self.awesometransition.present = NO;
    }else{
        self.awesometransition.present = YES;
    }

    return self.awesometransition;
}

License

HYAwesomeTransition 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].