{"id":2297,"url":"https://github.com/Rightpoint/RZTransitions","last_synced_at":"2025-08-02T23:33:02.430Z","repository":{"id":12566358,"uuid":"15236811","full_name":"Rightpoint/RZTransitions","owner":"Rightpoint","description":"A library of custom iOS View Controller Animations and Interactions.","archived":false,"fork":false,"pushed_at":"2020-02-06T19:14:19.000Z","size":1657,"stargazers_count":1870,"open_issues_count":11,"forks_count":187,"subscribers_count":80,"default_branch":"master","last_synced_at":"2024-12-01T03:05:17.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Rightpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-12-16T20:47:15.000Z","updated_at":"2024-11-20T06:56:22.000Z","dependencies_parsed_at":"2022-09-23T08:01:06.631Z","dependency_job_id":null,"html_url":"https://github.com/Rightpoint/RZTransitions","commit_stats":null,"previous_names":["raizlabs/rztransitions"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZTransitions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZTransitions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZTransitions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZTransitions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rightpoint","download_url":"https://codeload.github.com/Rightpoint/RZTransitions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503177,"owners_count":17930527,"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":[],"created_at":"2024-01-05T20:16:10.160Z","updated_at":"2024-12-06T17:30:59.722Z","avatar_url":"https://github.com/Rightpoint.png","language":"Objective-C","readme":"\n\u003cimg src=\"https://raw.github.com/Raizlabs/RZTransitions/master/Web/RZTransitions.png\" alt=\"RZTransitions\" width=\"763\" /\u003e\n\n[![Build Status](https://travis-ci.org/Raizlabs/RZTransitions.svg)](https://travis-ci.org/Raizlabs/RZTransitions)\n\n### RZTransitions is a library to help make iOS7 custom View Controller transitions slick and simple.\n\n\u003cimg src=\"http://raw.github.com/Raizlabs/RZTransitions/master/Web/RZTransitionsDemo.gif\" alt=\"Overview\" /\u003e\n\n## Installation\n\n### CocoaPods (Recommended)\n\nAdd the following to your Podfile:\n\n```ruby\npod 'RZTransitions'\n```\n\nRZTransitions follows semantic versioning conventions. Check the [releases page](https://github.com/Raizlabs/RZTransitions/releases) for the latest updates and version history.\n\n### Manual Installation\n\nCopy and add all of the files in the `RZTransitions` directory (and its subdirectories) into your project.\n\n## Setting a New Default Transition\n\nSwift\n```Swift\nRZTransitionsManager.shared().defaultPresentDismissAnimationController = RZZoomAlphaAnimationController()\nRZTransitionsManager.shared().defaultPushPopAnimationController = RZCardSlideAnimationController()\n```\n\nObjective-C\n```objective-c\nid\u003cRZAnimationControllerProtocol\u003e presentDismissAnimationController = [[RZZoomAlphaAnimationController alloc] init];\nid\u003cRZAnimationControllerProtocol\u003e pushPopAnimationController = [[RZCardSlideAnimationController alloc] init];\n[[RZTransitionsManager shared] setDefaultPresentDismissAnimationController:presentDismissAnimationController];\n[[RZTransitionsManager shared] setDefaultPushPopAnimationController:pushPopAnimationController];\n```\n\nWhen Presenting a View Controller\n\nSwift\n```Swift\nself.transitioningDelegate = RZTransitionsManager.shared()\nlet nextViewController = UIViewController()\nnextViewController.transitioningDelegate = RZTransitionsManager.shared()\nself.presentViewController(nextViewController, animated:true) {}\n```\nObjective-C\n```objective-c\n[self setTransitioningDelegate:[RZTransitionsManager shared]];\nUIViewController *nextViewController = [[UIViewController alloc] init];\n[nextViewController setTransitioningDelegate:[RZTransitionsManager shared]];\n[self presentViewController:nextViewController animated:YES completion:nil];\n```\n\nWhen creating a Navigation Controller ( **or** use RZTransitionsNavigationController )\n\nSwift\n```Swift\nlet navigationController = UINavigationController()\nnavigationController.delegate = RZTransitionsManager.shared()\n```\nObjective-C\n```objective-c\nUINavigationController *navigationController = [[UINavigationController alloc] init];\n[navigationController setDelegate:[RZTransitionsManager shared]];\n```\n\n## Specifying Transitions for Specific View Controllers\n\nSwift\n```Swift\nRZTransitionsManager.shared().setAnimationController( RZZoomPushAnimationController(),\n    fromViewController:self.dynamicType,\n    toViewController:RZSimpleCollectionViewController.self,\n    forAction:.PushPop)\n```\nObjective-C\n```objective-c\n// Use the RZZoomPushAnimationController when pushing from this view controller to a\n// RZSimpleCollectionViewController or popping from a RZSimpleCollectionViewController to\n// this view controller.\n[[RZTransitionsManager shared] setAnimationController:[[RZZoomPushAnimationController alloc] init]\n                                   fromViewController:[self class]\n                                     toViewController:[RZSimpleCollectionViewController class]\n                                            forAction:RZTransitionAction_PushPop];\n```\n\n## Hooking up Interactors\n\nSwift\n```Swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n    self.presentInteractionController = RZVerticalSwipeInteractionController()\n    if let vc = self.presentInteractionController as? RZVerticalSwipeInteractionController {\n        vc.nextViewControllerDelegate = self\n        vc.attachViewController(self, withAction:.Present)\n    }\n}\n\noverride func viewWillAppear(animated: Bool)\n{\n    super.viewWillAppear(animated)\n    RZTransitionsManager.shared().setInteractionController( self.presentInteractionController,\n        fromViewController:self.dynamicType,\n        toViewController:nil,\n        forAction:.Present)\n}\n```\nObjective-C\n```objective-c\n@property (nonatomic, strong) id\u003cRZTransitionInteractionController\u003e presentInteractionController;\n\n- (void)viewDidLoad\n{\n   [super viewDidLoad];\n\t// Create the presentation interaction controller that allows a custom gesture\n\t// to control presenting a new VC via a presentViewController\n   self.presentInteractionController = [[RZVerticalSwipeInteractionController alloc] init];\n   [self.presentInteractionController setNextViewControllerDelegate:self];\n   [self.presentInteractionController attachViewController:self withAction:RZTransitionAction_Present];\n}\n\n- (void)viewWillAppear:(BOOL)animated\n{\n   [super viewWillAppear:animated];\n\t//  Use the present interaction controller for presenting any view controller from this view controller\n   [[RZTransitionsManager shared] setInteractionController:self.presentInteractionController\n                                        fromViewController:[self class]\n                                          toViewController:nil\n                                                 forAction:RZTransitionAction_Present];\n}\n```\n\n## Features\n\n - A comprehensive library of animation controllers\n - A comprehensive library of interaction controllers\n - Mix and match any animation controller with any interaction controller\n - A shared instance manager that helps wrap the iOS7 custom transition protocol to expose a friendlier API\n\nYou can use any of the animation controllers or interaction controllers without the RZTransitionsManager and simply use them with the iOS7 custom View Controller transition APIs.\n\n## Maintainers\n\n[arrouse](https://github.com/arrouse) ([@arrouse88](http://twitter.com/arrouse88))\n\n[nbonatsakis](https://github.com/nbonatsakis) ([@nickbona](http://twitter.com/nickbona))\n\n[dostrander](https://github.com/dostrander) ([@_Derko](http://twitter.com/_Derko))\n\n[markpragma](https://github.com/markpragma) ([@markpragma ](http://twitter.com/markpragma))\n\n[rztakashi](https://github.com/rztakashi)\n\n## Contributors\n\n[smbarne](https://github.com/smbarne) ([@smbarne](http://twitter.com/smbarne))\n\n## License\n\nRZTransitions is licensed under the MIT license. See the `LICENSE` file for details.\n","funding_links":[],"categories":["UI","Objective-C  Stars 1000以内排名整理","HarmonyOS","etc"],"sub_categories":["Animation","Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRightpoint%2FRZTransitions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRightpoint%2FRZTransitions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRightpoint%2FRZTransitions/lists"}