• Stars
    star
    128
  • Rank 281,044 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Great iOS radial (circle) animation transition for navigation controller, with custom back swipe. ObjC

RadialTransition_objC

Great ios radial transition for navigation controller, with custom back swipe.

Demo

alt tag

Usage

just import

#import "UINavigationController+RadialTransaction.h"

for push simple use

[self.navigationController radialPushViewController:[[UIViewController alloc]init] comlititionBlock:^{
        
}];
 //or   
[self.navigationController radialPushViewController:[[UIViewController alloc]init] withDuration:1 comlititionBlock:^{
        
}];
 //or  
[self.navigationController radialPushViewController:[[UIViewController alloc]init] withDuration:1 withStartFrame:CGRectMake(self.view.frame.size.width, 0, 0, 0) comlititionBlock:^{
        
}];

for pop use

[self.navigationController radialPopViewControllerWithComlititionBlock:^{
        
}];
 //or
[self.navigationController radialPopViewControllerWithDuration:0.9 comlititionBlock:^{
        
}];
 //or   
[self.navigationController radialPopViewControllerWithDuration:0.9 withStartFrame:CGRectMake(self.view.frame.size.width/2, self.view.frame.size.height, 0, 0) comlititionBlock:^{
        
}];

to enable swipe to back just use

[self.navigationController enableRadialSwipe];

to disable

[self.navigationController disableRadialSwipe];

if you want to change back swipe speed you may set new default duration

[UINavigationController setDefaultRadialAnimationTime:11];

Requirements

ios 7 +,xcode 5+

Futher Work

-add TabbarController transaction -add radial circle options (shadow,color etc) -other improvements