{"id":13685232,"url":"https://github.com/kentnguyen/KNSemiModalViewController","last_synced_at":"2025-05-01T01:31:10.555Z","repository":{"id":3171761,"uuid":"4202986","full_name":"kentnguyen/KNSemiModalViewController","owner":"kentnguyen","description":"KNSemiModalViewController","archived":false,"fork":false,"pushed_at":"2016-05-11T04:21:25.000Z","size":3727,"stargazers_count":1799,"open_issues_count":23,"forks_count":278,"subscribers_count":90,"default_branch":"master","last_synced_at":"2024-10-29T17:58:15.459Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentnguyen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-02T12:58:43.000Z","updated_at":"2024-10-22T13:45:27.000Z","dependencies_parsed_at":"2022-09-05T03:33:02.046Z","dependency_job_id":null,"html_url":"https://github.com/kentnguyen/KNSemiModalViewController","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnguyen%2FKNSemiModalViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnguyen%2FKNSemiModalViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnguyen%2FKNSemiModalViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnguyen%2FKNSemiModalViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentnguyen","download_url":"https://codeload.github.com/kentnguyen/KNSemiModalViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224191812,"owners_count":17271136,"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-08-02T14:00:47.041Z","updated_at":"2024-11-12T06:31:32.578Z","avatar_url":"https://github.com/kentnguyen.png","language":"Objective-C","funding_links":[],"categories":["Objective-C","Objective-C  Stars 1000以内排名整理","etc"],"sub_categories":[],"readme":"## UIViewController+KNSemiModal Category\n\nUIViewController+KNSemiModal is an effort to make a replica of **semi-modal view with pushed-back stacked animation** found in the beautiful [Park Guides by National Geographic](http://itunes.apple.com/us/app/national-parks-by-national/id518426085?mt=8) app. You can see this original semi-modal view below.\n\nThis library (ARC) is designed as a Category to UIViewController so you don't have to subclass and you can simply drop in any project and it will just work!\n\n*Original screenshot*\n\n\u003cimg src=\"https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/original.png?raw=true\" /\u003e . \u003cimg src=\"https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/original2.png?raw=true\" /\u003e\n\n*Replica (view demo video to see the beautiful animation)*\n\n\u003cimg src=\"https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/ss1.png?raw=true\" /\u003e . \u003cimg src=\"https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/ss2.png?raw=true\" /\u003e\n\n*On iPad\n\n\u003cimg src=\"https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/ss3.png?raw=true\" /\u003e \n\n### Demo\n\nDownload a demo clip [here](https://github.com/kentnguyen/KNSemiModalViewController/blob/master/Docs/KNSemiModalDemo.mov?raw=true) (1.3MB, .mov)\n\n### Features\n* Works with bare UIViewController\n* Works with UIViewController contained inside UINavigationController\n* Works with UIViewController contained inside UINavigationController, contained inside UITabbarController\n* Auto handling of modal frame size\n* Auto handling of touch area for dismissal\n* Resizable after presenting so that keyboard related interactions are possible\n* Easy to understand and very small code base, only 2 files\n* Trivial to implement as subclass\n* Landscape support (not during presentation)\n* Only use basic CAAnimation\n* iPad support (experimental)\n* Minimum iOS 5.0 (if you need 4.x support, use older commits before Jan 2013)\n\n### Optional parameters\n\n- animation duration\n- parent alpha\n- optional push-back\n- shadow opacity\n- disabling the cancel action\n- transition style: slide up, fade\n\nEasily extend this to anything you would want to make configurable. Feel free to submit pull requests.\n\n### Installation / How to use\n* Copy 4 files in `Source` folder to your project\n* Add `QuartzCore.framework` to your project\n* `#import \"UIViewController+KNSemiModal.h\"` in your ViewController\n* Call `[self presentSemiModalView:myView]`\n* Call `[self dismissSemiModalView]` either from parent/presenting or child/presented controller\n\n### Major contributors\n\n- [@yangmeyer](http://twitter.com/yangmeyer)\n- [@dchohfi](https://github.com/dchohfi)\n\n### License\n\nIn short: MIT aka Buy me coffee license [![](http://kentnguyen.com/KNCoffeeButton.png)](http://bit.ly/10KC2wr)\n\nUIViewController+KNSemiModal is licensed under MIT License\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnguyen%2FKNSemiModalViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentnguyen%2FKNSemiModalViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnguyen%2FKNSemiModalViewController/lists"}