{"id":18450250,"url":"https://github.com/libsteve/adaptivetyping","last_synced_at":"2025-04-18T00:30:31.042Z","repository":{"id":56901572,"uuid":"123653055","full_name":"libsteve/AdaptiveTyping","owner":"libsteve","description":"A view controller to automatically adjust child view controllers when the iOS Keyboard appears.","archived":false,"fork":false,"pushed_at":"2018-03-14T17:04:21.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T07:16:25.506Z","etag":null,"topics":["ios","ios-ui","ios11","swift","uiviewcontroller"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libsteve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-03T02:47:43.000Z","updated_at":"2019-12-05T01:31:34.000Z","dependencies_parsed_at":"2022-08-21T02:50:49.848Z","dependency_job_id":null,"html_url":"https://github.com/libsteve/AdaptiveTyping","commit_stats":null,"previous_names":["altece/adaptivetyping"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsteve%2FAdaptiveTyping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsteve%2FAdaptiveTyping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsteve%2FAdaptiveTyping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsteve%2FAdaptiveTyping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsteve","download_url":"https://codeload.github.com/libsteve/AdaptiveTyping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167445,"owners_count":21223506,"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":["ios","ios-ui","ios11","swift","uiviewcontroller"],"created_at":"2024-11-06T07:24:07.880Z","updated_at":"2025-04-15T23:10:27.209Z","avatar_url":"https://github.com/libsteve.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"AdaptiveTyping\n==============\n\n`KeyboardSafeAreaController` is a container view controller that will automatically\nadjust its safe area insets in response to the iOS Keyboard appearing, disappearing,\nand resizing.\n\nTo use it, simply instantiate `KeyboardSafeAreaController` with a view controller\nwhose safe-area you want protected from the keyboard, and present that instance\nas you would any other view controller. Voila! your view controller's safe-area\nwill resize whenever the keyboard appears, disappears, or changes in size.\n\n```swift\nimport AdaptiveTyping\nimport PlaygroundSupport\nimport UIKit\n\nPlaygroundPage.current.liveView = KeyboardSafeAreaController(rootViewController: ViewController())\n\nclass ViewController: UIViewController {\n    var field: UITextField!\n\n    override func loadView() {\n        view = UIView()\n        view.backgroundColor = .white\n\n        field = UITextField()\n        field.translatesAutoresizingMaksIntoConstraints = false\n        view.addSubview(field)\n\n        field.text = \"Apples are your friends\"\n        field.textAlignment = .center\n\n        [ field.centerXAnchor.constraint(equalTo: view.layoutMarginsGuide.centerXAnchor),\n          field.centerYAnchor.constraint(equalTo: view.layoutMarginsGuide.centerYAnchor),\n          field.widthAnchor.constraint(equalTo: view.layoutMarginsGuide.widthAnchor) ]\n            .forEach { $0.isActive = true }\n\n        let tap = UITapGestureRecognizer(target: self, action: #selector(self.didTapAway))\n        view.addGestureRecognizer(tap)\n    }\n\n    @objc func didTapAway() {\n        field.resignFirstResponder()\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsteve%2Fadaptivetyping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsteve%2Fadaptivetyping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsteve%2Fadaptivetyping/lists"}