{"id":15037342,"url":"https://github.com/tapptitude/ttinputvisibilitycontroller","last_synced_at":"2025-04-09T23:24:02.898Z","repository":{"id":56923354,"uuid":"106690338","full_name":"tapptitude/TTInputVisibilityController","owner":"tapptitude","description":"Lightweight controller to keep your inputs visible when the keyboard is presented.","archived":false,"fork":false,"pushed_at":"2018-10-04T12:29:05.000Z","size":2967,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T01:13:11.378Z","etag":null,"topics":["animation","carthage","cocoapods","ios","keyboard","light","lightweight","manager","show","swift","swift3","swift4","textfield","textview","visibility","visible"],"latest_commit_sha":null,"homepage":"https://tapptitude.com","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/tapptitude.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":"2017-10-12T12:32:55.000Z","updated_at":"2023-01-28T09:07:12.000Z","dependencies_parsed_at":"2022-08-21T04:50:25.972Z","dependency_job_id":null,"html_url":"https://github.com/tapptitude/TTInputVisibilityController","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapptitude%2FTTInputVisibilityController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapptitude%2FTTInputVisibilityController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapptitude%2FTTInputVisibilityController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapptitude%2FTTInputVisibilityController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tapptitude","download_url":"https://codeload.github.com/tapptitude/TTInputVisibilityController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127074,"owners_count":21052166,"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","carthage","cocoapods","ios","keyboard","light","lightweight","manager","show","swift","swift3","swift4","textfield","textview","visibility","visible"],"created_at":"2024-09-24T20:34:23.169Z","updated_at":"2025-04-09T23:24:02.877Z","avatar_url":"https://github.com/tapptitude.png","language":"Swift","readme":"# TTInputVisibilityController\n![](https://img.shields.io/badge/Swift-4.0-green.svg?style=flat)\n![](https://img.shields.io/badge/Swift-3.0-green.svg?style=flat)\n[![Twitter](https://img.shields.io/badge/Twitter-@Tapptitude-blue.svg?style=flat)](http://twitter.com/Tapptitude)\n\n## About\nLightweight controller to keep your inputs visible when the keyboard is presented.\n\nThis project is maintained by Tapptitude, a mobile app development agency specialized in building high-quality iOS and Android mobile apps, for startups and brands alike. A lively team of skilled app developers and app designers based in Europe, we provide full-stack mobile app development services to entrepreneurs looking to innovate on mobile. \n\n![](Resources/example1.gif)\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n![](Resources/example2.gif)\n\n\n## Features:\n- Lightweight \u0026 very easy to integrate\n- Works with any inputs or keyboard types\n- Automatic keyboard dismiss when tapping outside of the input\n- Ignore views that trigger dimissal \n- Custom additional distance from the keyboard \n- Add any view to be visible\n- Custom animation block when the keyboard is presented.\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 7.3+\n\n## Installation\n\n_CocoaPods_\n\n_Swift 4.0, 3.X_\n\n```ruby\npod 'TTInputVisibilityController'\n```\n\n_Carthage_\n\n```\ngithub \"tapptitude/TTInputVisibilityController\"\n```\n\n_Manually_\n\nAdd the contents of TTInputVisibilityController files to your project.\n\n## Usage\n\n### Add the controller directly to your view\n\nYou can add the keyboardVisibilityController to the view property of any ViewController. \n\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n    self.view.addInputVisibilityController()\n}\n```\n### Custom space above the keyboard\n\nYou can add extra space above the keyboard by setting the  ```swift extraSpaceAboveKeyboard``` property. \n\n### Ignore views that trigger dimissal\n\nIf you want some view to not trigger the dismissal of the keyboard(e.g. a login button) you can set\n\n```swift \ninputVisibilityController.dismissKeyboardTouchRecognizer?.ignoreViews = [myLoginButton] \n```\n\n### Additional animation block\n\nYou can also provide a block to be called when the keyboard is dismissed or presented, providing you the translation value. (e.g animating some constraints)\n\n```swift \n\ninputVisibilityController.additionallAnimatioBlock = { [weak self] translation in\n    self?.loginButtonBottomConstraint.constant = initialConstraint + translation\n    self?.view.layoutIfNeeded()\n}\n\n```\n\n## Contribution\n\nFeel free to Fork, submit Pull Requests or send us your feedback and suggestions!\n\n\n## License\n\nTTInputVisibilityController is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapptitude%2Fttinputvisibilitycontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftapptitude%2Fttinputvisibilitycontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapptitude%2Fttinputvisibilitycontroller/lists"}