Skip to content

zenghaojim33/CustomTransition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomTransition

This is an Objective-c version of andreamazz/BubbleTransition. I Re-wrote it for personal practice.

To do

_transition = [[CustomTransition alloc]init];

Modify the properties of CustomerTransition instance as you desire.

-(id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source{
    
    _transition.transitionmode = Present;
    _transition.startPoint = _transitionButton.center;
    _transition.bubbleColor = _transitionButton.backgroundColor;
    return _transition;
    
    
}

-(id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
    
    _transition.transitionmode = Dismiss;
    _transition.startPoint = _transitionButton.center;
    _transition.bubbleColor = _transitionButton.backgroundColor;
    return _transition;
    
    
}


###License

This prodject is released under MIT lisence.

About

Objective-C implementation of Bubble Transition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published