This is an Objective-c version of andreamazz/BubbleTransition. I Re-wrote it for personal practice.
_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.