{"id":18465937,"url":"https://github.com/relatedcode/passcodekit","last_synced_at":"2025-08-21T03:06:25.979Z","repository":{"id":49094084,"uuid":"355498486","full_name":"relatedcode/PasscodeKit","owner":"relatedcode","description":"PasscodeKit is a lightweight and easy-to-use, in-app Passcode implementation for iOS.","archived":false,"fork":false,"pushed_at":"2023-12-24T08:48:38.000Z","size":113,"stargazers_count":50,"open_issues_count":3,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-21T07:46:52.362Z","etag":null,"topics":[],"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/relatedcode.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":"2021-04-07T10:10:39.000Z","updated_at":"2025-04-28T03:28:15.000Z","dependencies_parsed_at":"2022-09-01T23:11:49.980Z","dependency_job_id":"dd4cf8ba-a80d-4b3a-9fd0-cb6b70208c57","html_url":"https://github.com/relatedcode/PasscodeKit","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"e7b1a7916c7d7e084391a4bf1cf2c3edf93c5e6c"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/relatedcode/PasscodeKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relatedcode%2FPasscodeKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relatedcode%2FPasscodeKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relatedcode%2FPasscodeKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relatedcode%2FPasscodeKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relatedcode","download_url":"https://codeload.github.com/relatedcode/PasscodeKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relatedcode%2FPasscodeKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271420131,"owners_count":24756490,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-06T09:14:32.107Z","updated_at":"2025-08-21T03:06:25.957Z","avatar_url":"https://github.com/relatedcode.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OVERVIEW\n\nPasscodeKit is a lightweight and easy-to-use, in-app Passcode implementation for iOS.\n\n\u003cimg src=\"https://rel.codes/passcodekit/01.png\" width=\"880\"\u003e\n\n## INSTALLATION\n\n### CocoaPods\n\n[CocoaPods](https://cocoapods.org) is a dependency manager for Swift and Objective-C Cocoa projects.\n\nTo incorporate the **PasscodeKit** library into your Xcode project utilizing CocoaPods, please reference it within your `Podfile` as shown below:\n\n```ruby\npod 'PasscodeKit'\n```\n\n### Swift Package Manager\n\n[Swift Package Manager](https://swift.org/package-manager) is a tool for managing the distribution of Swift code.\n\nTo add **PasscodeKit** as a dependency to your project, follow these steps:\n\n1. Open your Swift project in Xcode.\n2. Navigate to `File` -\u003e `Add Package Dependencies...`.\n3. Paste `https://github.com/relatedcode/PasscodeKit.git` into the search bar.\n4. Choose the version you want to use and click `Add Package`.\n\n### Manually\n\nIf you prefer not to use any of the dependency managers, you can integrate **PasscodeKit** into your project manually. Just copy all the `*.swift` files from the `PasscodeKit/Sources` folder into your Xcode project.\n\n## REQUIREMENTS\n\n- iOS 12.0+\n\n## QUICKSTART\n\nTo activate the PasscodeKit in your codebase, you need to start it right after the app is launched. The best practice to do it in the AppDelegate `didFinishLaunchingWithOptions` method. \n\n```swift\nPasscodeKit.start()\n```\n\nThe following `PasscodeKitDelegate` methods can be used to take actions related to the PasscodeKit user activity.\n\n```swift\nfunc passcodeCheckedButDisabled()\n\nfunc passcodeEnteredSuccessfully()\n\nfunc passcodeMaximumFailedAttempts()\n```\n\nTo enable, disable the passcode functionality, or to change the saved passcode you can use the following methods.\n\n```swift\nPasscodeKit.createPasscode(self)\n\nPasscodeKit.changePasscode(self)\n\nPasscodeKit.removePasscode(self)\n```\n\n\u003cimg src=\"https://rel.codes/passcodekit/02.png\" width=\"880\"\u003e\n\n## CUSTOMIZATION\n\nThe following settings are available for customizing the passcode-related user experience.\n\n```swift\nPasscodeKit.passcodeLength = 4\n\nPasscodeKit.allowedFailedAttempts = 3\n```\n\n```swift\nPasscodeKit.textColor = .darkText\nPasscodeKit.backgroundColor = .lightGray\n\nPasscodeKit.failedTextColor = .white\nPasscodeKit.failedBackgroundColor = .systemRed\n```\n\n```swift\nPasscodeKit.titleEnterPasscode = \"Enter Passcode\"\nPasscodeKit.titleCreatePasscode = \"Create Passcode\"\nPasscodeKit.titleChangePasscode = \"Change Passcode\"\nPasscodeKit.titleRemovePasscode = \"Remove Passcode\"\n\nPasscodeKit.textEnterPasscode = \"Enter your passcode\"\nPasscodeKit.textVerifyPasscode = \"Verify your passcode\"\nPasscodeKit.textEnterOldPasscode = \"Enter your old passcode\"\nPasscodeKit.textEnterNewPasscode = \"Enter your new passcode\"\nPasscodeKit.textVerifyNewPasscode = \"Verify your new passcode\"\nPasscodeKit.textFailedPasscode = \"%d Failed Passcode Attempts\"\nPasscodeKit.textPasscodeMismatch = \"Passcodes did not match. Try again.\"\nPasscodeKit.textTouchIDAccessReason = \"Please use Touch ID to unlock the app\"\n```\n\n## CONFIGURATION\n\nPasscodeKit supports both TouchID and FaceID. If you're using FaceID, be sure to add the `NSFaceIDUsageDescription` details into your Info.plist file.\n\n\u003cimg src=\"https://rel.codes/passcodekit/03.png\" width=\"880\"\u003e\n\n## LICENSE\n\nMIT License\n\nCopyright (c) 2023 Related Code\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelatedcode%2Fpasscodekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelatedcode%2Fpasscodekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelatedcode%2Fpasscodekit/lists"}