{"id":16835219,"url":"https://github.com/hackiftekhar/iqkeyboardcore","last_synced_at":"2025-03-18T02:25:48.361Z","repository":{"id":249653346,"uuid":"832151796","full_name":"hackiftekhar/IQKeyboardCore","owner":"hackiftekhar","description":"Common functions shared between IQKeyboard related libraries. Not intended to be used independently.","archived":false,"fork":false,"pushed_at":"2024-10-29T14:05:42.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T15:17:36.920Z","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-22T13:00:25.000Z","updated_at":"2024-11-11T16:47:06.000Z","dependencies_parsed_at":"2024-11-24T08:01:05.783Z","dependency_job_id":null,"html_url":"https://github.com/hackiftekhar/IQKeyboardCore","commit_stats":null,"previous_names":["hackiftekhar/iqkeyboardcore"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQKeyboardCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackiftekhar","download_url":"https://codeload.github.com/hackiftekhar/IQKeyboardCore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244142625,"owners_count":20405042,"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:21.394Z","updated_at":"2025-03-18T02:25:48.336Z","avatar_url":"https://github.com/hackiftekhar.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IQKeyboardCore\n\n[![CI Status](https://img.shields.io/travis/hackiftekhar/IQKeyboardCore.svg?style=flat)](https://travis-ci.org/hackiftekhar/IQKeyboardCore)\n[![Version](https://img.shields.io/cocoapods/v/IQKeyboardCore.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardCore)\n[![License](https://img.shields.io/cocoapods/l/IQKeyboardCore.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardCore)\n[![Platform](https://img.shields.io/cocoapods/p/IQKeyboardCore.svg?style=flat)](https://cocoapods.org/pods/IQKeyboardCore)\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\nIQKeyboardCore is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'IQKeyboardCore'\n```\n\n## Usage\n\nIQKeyboardCore is not intended to use independently. It's just a helper and extension for most of the IQKeyboard related libraries\n\nThis contains IQTextInputView protocol\n```swift\n@objc public protocol IQTextInputView where Self: UIView, Self: UITextInputTraits {\n}\n```\nUITextField, UITextView and UISearchBar are the known classes who adopted this protocol within the library\n\n```swift\n@objc extension UITextField: IQTextInputView {...}\n\n@objc extension UITextView: IQTextInputView {...}\n\n@objc extension UISearchBar: IQTextInputView {...}\n```\n\nThis library also contains IQEnableMode which is used by other libraries\n```swift\n@objc public enum IQEnableMode: Int {\n    case `default`\n    case enabled\n    case disabled\n}\n```\n\nThere are other extension functions which are available on UIView\n```swift\npublic extension IQKeyboardExtension where Base: UIView {\n    func viewContainingController() -\u003e UIViewController?\n    func superviewOf\u003cT: UIView\u003e(type classType: T.Type, belowView: UIView? = nil) -\u003e T?\n    func textFieldSearchBar() -\u003e UISearchBar?\n    func isAlertViewTextField() -\u003e Bool\n}\n```\n\nAbove extension functions can be used like below\n```swift\n  view.iq.viewContainingController()\n  view.iq.superviewOf(type: UIScrollView.self)\n  view.iq.textFieldSearchBar()\n  view.iq.isAlertViewTextField()\n```\n\n## Author\n\nhackiftekhar, ideviftekhar@gmail.com\n\n## License\n\nIQKeyboardCore 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%2Fiqkeyboardcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackiftekhar%2Fiqkeyboardcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackiftekhar%2Fiqkeyboardcore/lists"}