{"id":27024811,"url":"https://github.com/goergisn/codeinputfield","last_synced_at":"2025-04-04T21:30:18.906Z","repository":{"id":56577613,"uuid":"307738064","full_name":"goergisn/CodeInputField","owner":"goergisn","description":"An input field allowing the user to enter digits","archived":false,"fork":false,"pushed_at":"2020-10-30T14:32:31.000Z","size":260,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-18T15:37:16.198Z","etag":null,"topics":["input","inputfield","ui-components","uikit"],"latest_commit_sha":null,"homepage":"","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/goergisn.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":"2020-10-27T15:06:07.000Z","updated_at":"2020-10-30T14:31:10.000Z","dependencies_parsed_at":"2022-08-15T21:20:25.545Z","dependency_job_id":null,"html_url":"https://github.com/goergisn/CodeInputField","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goergisn%2FCodeInputField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goergisn%2FCodeInputField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goergisn%2FCodeInputField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goergisn%2FCodeInputField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goergisn","download_url":"https://codeload.github.com/goergisn/CodeInputField/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247251876,"owners_count":20908588,"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":["input","inputfield","ui-components","uikit"],"created_at":"2025-04-04T21:30:17.424Z","updated_at":"2025-04-04T21:30:18.896Z","avatar_url":"https://github.com/goergisn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeInputField\nAn input field allowing the user to enter digits\n\n[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightGreen)](https://swift.org/package-manager/)\n\n## Usage\n![Obfuscated Code Input Preview](https://github.com/goergisn/CodeInputField/blob/main/Resources/obfuscated_input.gif)\n\n```Swift\n// Obfuscated input field that shows a 🔒 instead of the actual digits\nlet secureInputField = CodeInputField(segments: (0..\u003c4).map { _ in\n    let segment = CodeInputField.DefaultSegment(inputOverride: \"🔒\")\n    segment.tintColor = .purple\n    segment.inputColor = .white\n    segment.backgroundColor = segment.tintColor?.withAlphaComponent(0.3)\n    segment.nonEmptyBackgroundColor = .purple\n    return segment\n}, shouldClearInputWhenBecomingFirstResponder: true)\n```\n    \n![Code Input Preview](https://github.com/goergisn/CodeInputField/blob/main/Resources/code_input.gif)\n```Swift\n// Generic code input field with custom radius \u0026 font\nlet codeInputField = CodeInputField(segments: (0..\u003c6).map { _ in\n    let segment = CodeInputField.DefaultSegment()\n    segment.cornerRadius = 8\n    segment.inputFont = .monospacedDigitSystemFont(ofSize: 20, weight: .black)\n    return segment\n})\n```\n\n## Author\n\n[Alex Guretzki](mailto:hi@goergisn.de), https://goergisn.de\n\n## License\n\nCodeInputField 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%2Fgoergisn%2Fcodeinputfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoergisn%2Fcodeinputfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoergisn%2Fcodeinputfield/lists"}