{"id":16643733,"url":"https://github.com/zaimramlan/ios-secure-code-entry","last_synced_at":"2025-12-25T11:56:08.660Z","repository":{"id":75716619,"uuid":"133402659","full_name":"zaimramlan/ios-secure-code-entry","owner":"zaimramlan","description":"An iOS app that imitates Apple's passcode entry","archived":false,"fork":false,"pushed_at":"2019-10-06T09:19:50.000Z","size":1170,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-18T17:30:57.939Z","etag":null,"topics":["character","passcode","prototype","secure","single","swift","uitextfield"],"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/zaimramlan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-14T18:08:40.000Z","updated_at":"2024-03-20T20:50:41.000Z","dependencies_parsed_at":"2023-03-11T20:14:59.528Z","dependency_job_id":null,"html_url":"https://github.com/zaimramlan/ios-secure-code-entry","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Fios-secure-code-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Fios-secure-code-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Fios-secure-code-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Fios-secure-code-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaimramlan","download_url":"https://codeload.github.com/zaimramlan/ios-secure-code-entry/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243172144,"owners_count":20247887,"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":["character","passcode","prototype","secure","single","swift","uitextfield"],"created_at":"2024-10-12T08:09:24.337Z","updated_at":"2025-12-25T11:56:08.629Z","avatar_url":"https://github.com/zaimramlan.png","language":"Swift","readme":"# Secure Code Entry\n\n[![IDE](https://img.shields.io/badge/Xcode-10-blue.svg)](https://developer.apple.com/xcode/)\n[![Platform](https://img.shields.io/badge/platform-iOS%2013-green.svg)](https://developer.apple.com/ios/)\n[![Language](https://img.shields.io/badge/swift-5-orange.svg)](https://swift.org)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nAn iOS app that imitates Apple's passcode entry to showcase the a single digit UITextField custom class; `SecureCodeTextField`.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/zaimramlan/ios-secure-code-entry/blob/develop/Demo.gif\" alt=\"demo\" align=\"center\" width=\"auto\" height=\"500\"/\u003e\u003c/p\u003e\n\n## Features\n1. Only allow a single digit per textfield\n1. Disables UITextField action menu commands to prevent copy/paste\n1. Cursor auto moves to previous/next textfield after a single character text entry\n1. Works with arbitrary amount of textfields on screen\n\n## Usages\n1. Copy and paste \u003ca href=\"https://github.com/zaimramlan/ios-secure-code-entry/blob/develop/SecureCodeEntry/Modules/Main/SecureCodeTextField.swift\" target=\"_blank\"\u003eSecureCodeTextField.swift\u003c/a\u003e into your project\n1. Set the custom class of the `UITextField`s on your storyboard file to `SecureCodeTextField`\n1. Point the current `SecureCodeTextField`'s `previousTextField` and `nextTextField` to the respective text fields. For example:\n    ```swift\n    let firstTF = SecureCodeTextField()\n    let secondTF = SecureCodeTextField()\n    let thirdTF = SecureCodeTextField()\n\n    secondTF.previousTextField = firstTF\n    secondTF.nextTextField = thirdTF\n    ```\n1. Your textfields should now jump to previous/next textfields as desired!\n\n## More Examples?\nLook into the \u003ca href=\"https://github.com/zaimramlan/ios-secure-code-entry/blob/develop/SecureCodeEntry/Modules/Main/ViewController.swift\" target=\"_blank\"\u003eViewController.swift\u003c/a\u003e file and you should be able to understand in the scenario where we have 4 `SecureCodeTextFields`s","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaimramlan%2Fios-secure-code-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaimramlan%2Fios-secure-code-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaimramlan%2Fios-secure-code-entry/lists"}