Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.11 KB

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.