{"id":16835222,"url":"https://github.com/hackiftekhar/iqkeyboardnotification","last_synced_at":"2025-03-18T02:25:44.760Z","repository":{"id":249526984,"uuid":"831657091","full_name":"hackiftekhar/IQKeyboardNotification","owner":"hackiftekhar","description":"Lightweight library to observe keyboard events with ease.","archived":false,"fork":false,"pushed_at":"2024-10-29T14:06:24.000Z","size":338,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T15:17:36.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/hackiftekhar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T08:26:11.000Z","updated_at":"2024-10-29T14:06:27.000Z","dependencies_parsed_at":"2024-07-21T16:21:24.899Z","dependency_job_id":"064d8324-9c5f-4db8-8768-230931a7372a","html_url":"https://github.com/hackiftekhar/IQKeyboardNotification","commit_stats":null,"previous_names":["hackiftekhar/iqkeyboardnotification"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardNotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardNotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardNotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardNotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackiftekhar","download_url":"https://codeload.github.com/hackiftekhar/IQKeyboardNotification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244142622,"owners_count":20405041,"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-10-13T12:09:22.403Z","updated_at":"2025-03-18T02:25:44.740Z","avatar_url":"https://github.com/hackiftekhar.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IQKeyboardNotification\nLightweight library to observe keyboard events with ease.\n\n[![CI Status](https://img.shields.io/travis/hackiftekhar/IQKeyboardNotification.svg?style=flat)](https://travis-ci.org/hackiftekhar/IQKeyboardNotification)\n[![Version](https://img.shields.io/cocoapods/v/IQKeyboardNotification.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardNotification)\n[![License](https://img.shields.io/cocoapods/l/IQKeyboardNotification.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardNotification)\n[![Platform](https://img.shields.io/cocoapods/p/IQKeyboardNotification.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardNotification)\n\n![Screenshot](https://raw.githubusercontent.com/hackiftekhar/IQKeyboardNotification/master/Screenshot/IQKeyboardNotificationScreenshot.png)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nIQKeyboardNotification is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'IQKeyboardNotification'\n```\n\n## Usage\n\nTo observe keyboard events, subscribe to the keyboard events:-\n\n```swift\nimport IQKeyboardNotification\n\nclass ViewController: UIViewController {\n\n    private let keyboard: IQKeyboardNotification = .init()\n\n    override func viewWillAppear(_ animated: Bool) {\n        super.viewWillAppear(animated)\n\n        // Subscribe\n        keyboard.subscribe(identifier: \"YOUR_UNIQUE_IDENTIFIER\") { event, frame in\n            print(frame)\n            // Write your own logic here based on event and keyboard frame\n        }\n    }\n\n    override func viewWillDisappear(_ animated: Bool) {\n        super.viewWillDisappear(animated)\n\n        // Unsubscribe\n        keyboard.unsubscribe(identifier: \"YOUR_UNIQUE_IDENTIFIER\")\n    }\n}\n```\n\n## Author\n\nIftekhar Qurashi hack.iftekhar@gmail.com\n\n## Flow\n\n![Screenshot](https://raw.githubusercontent.com/hackiftekhar/IQKeyboardNotification/master/Screenshot/FlowDiagram.jpg)\n\n## License\n\nIQKeyboardNotification 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%2Fhackiftekhar%2Fiqkeyboardnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackiftekhar%2Fiqkeyboardnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackiftekhar%2Fiqkeyboardnotification/lists"}