{"id":2379,"url":"https://github.com/zoonooz/ZFDragableModalTransition","last_synced_at":"2025-08-02T23:33:19.729Z","repository":{"id":17350091,"uuid":"20121600","full_name":"zoonooz/ZFDragableModalTransition","owner":"zoonooz","description":"Custom animation transition for present modal view controller","archived":false,"fork":false,"pushed_at":"2018-01-21T03:49:25.000Z","size":3659,"stargazers_count":2468,"open_issues_count":23,"forks_count":308,"subscribers_count":62,"default_branch":"master","last_synced_at":"2024-11-26T11:04:56.448Z","etag":null,"topics":["animation","ios","objective-c","transition"],"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/zoonooz.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-05-24T04:02:39.000Z","updated_at":"2024-11-23T07:23:54.000Z","dependencies_parsed_at":"2022-08-07T08:15:57.156Z","dependency_job_id":null,"html_url":"https://github.com/zoonooz/ZFDragableModalTransition","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonooz%2FZFDragableModalTransition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonooz%2FZFDragableModalTransition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonooz%2FZFDragableModalTransition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonooz%2FZFDragableModalTransition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoonooz","download_url":"https://codeload.github.com/zoonooz/ZFDragableModalTransition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226818872,"owners_count":17687064,"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":["animation","ios","objective-c","transition"],"created_at":"2024-01-05T20:16:12.334Z","updated_at":"2024-12-06T17:31:03.087Z","avatar_url":"https://github.com/zoonooz.png","language":"Objective-C","funding_links":[],"categories":["UI","Objective-C","Uncategorized"],"sub_categories":["Transition","Layout","Other free courses","Uncategorized"],"readme":"# ZFDragableModalTransition\n\n[![Version](https://img.shields.io/cocoapods/v/ZFDragableModalTransition.svg?style=flat)](http://cocoadocs.org/docsets/ZFDragableModalTransition)\n[![License](https://img.shields.io/cocoapods/l/ZFDragableModalTransition.svg?style=flat)](http://cocoadocs.org/docsets/ZFDragableModalTransition)\n[![Platform](https://img.shields.io/cocoapods/p/ZFDragableModalTransition.svg?style=flat)](http://cocoadocs.org/docsets/ZFDragableModalTransition)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/zoonooz/ZFDragableModalTransition/master/Screenshot/ss.gif\"/\u003e\u003c/p\u003e\n\n## Usage\n\n```objc\n- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender\n{\n    TaskDetailViewController *detailViewController = segue.destinationViewController;\n    detailViewController.task = sender;\n\n    // create animator object with instance of modal view controller\n    // we need to keep it in property with strong reference so it will not get release\n    self.animator = [[ZFModalTransitionAnimator alloc] initWithModalViewController:detailViewController];\n    self.animator.dragable = YES;\n    self.animator.direction = ZFModalTransitonDirectionBottom;\n    [self.animator setContentScrollView:detailViewController.scrollview];\n\n    // set transition delegate of modal view controller to our object\n    detailViewController.transitioningDelegate = self.animator;\n\n    // if you modal cover all behind view controller, use UIModalPresentationFullScreen\n    detailViewController.modalPresentationStyle = UIModalPresentationCustom;\n}\n```\n###ScrollView\nIf you have scrollview in the modal and you want to dismiss modal by drag it, you need to set scrollview to ZFModalTransitionAnimator instance.\n```objc\n[self.animator setContentScrollView:detailViewController.scrollview];\n```\n\n###Direction\nYou can set that which direction will our modal present. (default is ZFModalTransitonDirectionBottom)\n```objc\nself.animator.direction = ZFModalTransitonDirectionBottom;\n```\nP.S. Now you can set content scrollview only with ZFModalTransitonDirectionBottom\n\n## Requirements\n- iOS \u003e= 7.1\n- ARC\n\n## Installation\n\nZFDragableModalTransition is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"ZFDragableModalTransition\"\n\n## FAQ\n\n### How can I show modal only part of view ?\nThe current ViewController's view still visible behind the modal, so you just set transparent color to background view.\n\n## Author\n\nAmornchai Kanokpullwad, [@zoonref](https://twitter.com/zoonref)\n\n##  Swift Version\n\nby @dimohamdy [ZFDragableModalTransitionSwift](https://github.com/dimohamdy/ZFDragableModalTransitionSwift)\n\n## License\n\nZFDragableModalTransition is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonooz%2FZFDragableModalTransition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoonooz%2FZFDragableModalTransition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonooz%2FZFDragableModalTransition/lists"}