{"id":18942209,"url":"https://github.com/dasdom/ddhdynamicviewcontrollertransitions","last_synced_at":"2026-03-04T02:32:05.862Z","repository":{"id":16121897,"uuid":"18867080","full_name":"dasdom/DDHDynamicViewControllerTransitions","owner":"dasdom","description":"Custom view controller transitions using UIDynamic behaviors.","archived":false,"fork":false,"pushed_at":"2014-05-27T20:06:14.000Z","size":5304,"stargazers_count":246,"open_issues_count":0,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-02T01:39:00.833Z","etag":null,"topics":["controller-transitions","navigation-controller"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dasdom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-17T04:59:05.000Z","updated_at":"2024-04-03T02:08:14.000Z","dependencies_parsed_at":"2022-09-08T01:22:21.688Z","dependency_job_id":null,"html_url":"https://github.com/dasdom/DDHDynamicViewControllerTransitions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasdom%2FDDHDynamicViewControllerTransitions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasdom%2FDDHDynamicViewControllerTransitions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasdom%2FDDHDynamicViewControllerTransitions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasdom%2FDDHDynamicViewControllerTransitions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dasdom","download_url":"https://codeload.github.com/dasdom/DDHDynamicViewControllerTransitions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520393,"owners_count":18238948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["controller-transitions","navigation-controller"],"created_at":"2024-11-08T12:31:55.964Z","updated_at":"2026-03-04T02:32:05.819Z","avatar_url":"https://github.com/dasdom.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDHDynamicViewControllerTransitions\n\n[![Version](http://cocoapod-badges.herokuapp.com/v/DDHDynamicViewControllerTransitions/badge.png)](http://cocoadocs.org/docsets/DDHDynamicViewControllerTransitions)\n[![Platform](http://cocoapod-badges.herokuapp.com/p/DDHDynamicViewControllerTransitions/badge.png)](http://cocoadocs.org/docsets/DDHDynamicViewControllerTransitions)\n\nCustom view controller transitions using `UIDynamic` behaviors.\n\nSnap\n\n![](https://raw.githubusercontent.com/dasdom/DDHDynamicViewControllerTransitions/master/screencasts/snap.gif)\n\nGravity\n\n![](https://raw.githubusercontent.com/dasdom/DDHDynamicViewControllerTransitions/master/screencasts/gravity.gif)\n\nGravity + Rotation\n\n![](https://raw.githubusercontent.com/dasdom/DDHDynamicViewControllerTransitions/master/screencasts/gravity_rotation.gif)\n\n## Usage\n\nCreate an instance of `DDHNavigationControllerDelegate` and make it the delegate of you navigation controller.\n\nExample:\n\n```objc\n#import \"DDHAppDelegate.h\"\n#import \"DDHFirstViewController.h\"\n#import \"DDHNavigationControllerDelegate.h\"\n\n@interface DDHAppDelegate ()\n@property (nonatomic, strong) DDHNavigationControllerDelegate *navigationControllerDelegate;\n@end\n\n@implementation DDHAppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n\n    DDHFirstViewController *firstViewController = [[DDHFirstViewController alloc] initWithNibName:@\"DDHFirstViewController\" bundle:nil];\n    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:firstViewController];\n    \n    self.navigationControllerDelegate = [[DDHNavigationControllerDelegate alloc] initWithTransitionType:1];\n    navigationController.delegate = self.navigationControllerDelegate;\n    \n    self.window.rootViewController = navigationController;\n    \n    self.window.backgroundColor = [UIColor whiteColor];\n    [self.window makeKeyAndVisible];\n    return YES;\n}\n\n```\n\n**Important**: The navigation controller assigns it's delegate. Therefore you will need a reference to the navigation controller delegate somewhere. You can do this eighther in Interface Builder of in code like in the example.\n\nTo change the transition type on the fly set the transitionType of the navigation controller delegate.\n\n### Using a storyboard\n\n```objc\n#import \"DDHNavigationControllerDelegate.h\"\n\n...\n\n- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender\n{\n    ((DDHNavigationControllerDelegate*)self.navigationController.delegate).transitionType = DDH_TRANSITION_TYPE_GRAVITY;\n}\n```\n\n### Without a storyboard\n\n```objc\n#import \"DDHNavigationControllerDelegate.h\"\n\n...\n\n- (void)pushSecondViewController {\n    ((DDHNavigationControllerDelegate*)self.navigationController.delegate).transitionType = DDH_TRANSITION_TYPE_GRAVITY;\n\n    DDHSecondViewController *secondViewController = [[DDHSecondViewController alloc] initWithNibName:@\"DDHSecondViewController\" bundle:nil];\n    [self.navigationController pushViewController:secondViewController animated:YES];\n}\n```\n\nIf you don't want to include the header file into your code you can use Key-Value-Coding:\n\n```objc\n[(NSObject*)self.navigationController.delegate setValue:@1 forKey:@\"transitionType\"];\n```\n\n## Requirements\n\nARC and iOS7.\n\n## Installation\n\n### Using CocoaPods\n\nDDHDynamicViewControllerTransitions is available through [CocoaPods](http://cocoapods.org), to install\nit simply add the following line to your Podfile:\n\n    pod \"DDHDynamicViewControllerTransitions\"\n\n### Manual\n\nDownload the project and add the files `DDHNavigationControllerDelegate.{h,m}` and the directory `DynamicTransitionAnimators` to your project.\n\n## Author\n\nDominik Hauser, dominik.hauser@dasdom.de\n\n## License\n\nDDHDynamicViewControllerTransitions is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasdom%2Fddhdynamicviewcontrollertransitions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdasdom%2Fddhdynamicviewcontrollertransitions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasdom%2Fddhdynamicviewcontrollertransitions/lists"}