{"id":25157580,"url":"https://github.com/podkovyrin/uiviewcontroller-keyboardadditions","last_synced_at":"2025-10-03T19:18:32.044Z","repository":{"id":26919528,"uuid":"30381656","full_name":"podkovyrin/UIViewController-KeyboardAdditions","owner":"podkovyrin","description":"Tiny UIViewController category that provides handy way for keyboard handling logic.","archived":false,"fork":false,"pushed_at":"2022-10-18T12:40:24.000Z","size":437,"stargazers_count":104,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T10:43:03.408Z","etag":null,"topics":["hacktoberfest","ios","keyboard","keyboard-notifications","objective-c"],"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/podkovyrin.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":"2015-02-05T22:22:03.000Z","updated_at":"2022-10-18T12:40:30.000Z","dependencies_parsed_at":"2022-08-21T06:20:12.456Z","dependency_job_id":null,"html_url":"https://github.com/podkovyrin/UIViewController-KeyboardAdditions","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podkovyrin%2FUIViewController-KeyboardAdditions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podkovyrin%2FUIViewController-KeyboardAdditions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podkovyrin%2FUIViewController-KeyboardAdditions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podkovyrin%2FUIViewController-KeyboardAdditions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/podkovyrin","download_url":"https://codeload.github.com/podkovyrin/UIViewController-KeyboardAdditions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251683404,"owners_count":21626960,"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":["hacktoberfest","ios","keyboard","keyboard-notifications","objective-c"],"created_at":"2025-02-09T01:40:52.695Z","updated_at":"2025-10-03T19:18:31.943Z","avatar_url":"https://github.com/podkovyrin.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIViewController-KeyboardAdditions\n\n[![Version](https://img.shields.io/cocoapods/v/UIViewController-KeyboardAdditions.svg?style=flat)](http://cocoadocs.org/docsets/UIViewController-KeyboardAdditions)\n[![License](https://img.shields.io/cocoapods/l/UIViewController-KeyboardAdditions.svg?style=flat)](http://cocoadocs.org/docsets/UIViewController-KeyboardAdditions)\n[![Platform](https://img.shields.io/cocoapods/p/UIViewController-KeyboardAdditions.svg?style=flat)](http://cocoadocs.org/docsets/UIViewController-KeyboardAdditions)\n\n## Swift Version\n\nFor Swift compatible version check out [Keyboardy](https://github.com/podkovyrin/Keyboardy)\n\n## Description\n\n`UIViewController+KeyboardAdditions` category simplifies keyboard handling logic by extending UIViewController class with several simple methods.\nSupports both AutoLayout and `frame`-based animations.\n\n\u003cimg src=\"https://raw.github.com/podkovyrin/UIViewController-KeyboardAdditions/master/demo.gif\" alt=\"UIViewController-KeyboardAdditions Demo GIF\" style=\"display:block; margin: 10px auto 30px auto; align:center\"/\u003e\n\n## Usage\n\n1. Import category `#import \u003cUIViewController-KeyboardAdditions/UIViewController+KeyboardAdditions.h\u003e`\n\n2. Register to keyboard notifications in `-viewWillAppear:`:\n```obj-c\n[self ka_startObservingKeyboardNotifications];\n```\n\n3. Unregister from notifications in `-viewWillDisappear:`:\n```obj-c\n[self ka_stopObservingKeyboardNotifications];\n```\n\n4. Perform any layout with same animation options as keybord:\n\n```obj-c\n- (void)ka_keyboardShowOrHideAnimationWithHeight:(CGFloat)height\n                               animationDuration:(NSTimeInterval)animationDuration\n                                  animationCurve:(UIViewAnimationCurve)animationCurve {\n\n    self.containerViewBottomConstraint.constant = height;\n    [self.view layoutIfNeeded];\n}\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nUIViewController-KeyboardAdditions is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"UIViewController-KeyboardAdditions\"\n\n## Author\n\nAndrew Podkovyrin, podkovyrin@gmail.com\n\n## License\n\nUIViewController-KeyboardAdditions 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%2Fpodkovyrin%2Fuiviewcontroller-keyboardadditions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpodkovyrin%2Fuiviewcontroller-keyboardadditions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodkovyrin%2Fuiviewcontroller-keyboardadditions/lists"}