{"id":2960,"url":"https://github.com/Fawxy/CBPinEntryView","last_synced_at":"2025-08-06T16:31:33.158Z","repository":{"id":47906524,"uuid":"85485269","full_name":"Fawxy/CBPinEntryView","owner":"Fawxy","description":"A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes.","archived":false,"fork":false,"pushed_at":"2024-03-22T09:17:18.000Z","size":164,"stargazers_count":190,"open_issues_count":9,"forks_count":41,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-12T09:50:47.168Z","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/Fawxy.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":"2017-03-19T15:06:51.000Z","updated_at":"2024-11-08T14:10:22.000Z","dependencies_parsed_at":"2024-04-27T23:41:52.866Z","dependency_job_id":null,"html_url":"https://github.com/Fawxy/CBPinEntryView","commit_stats":{"total_commits":71,"total_committers":12,"mean_commits":5.916666666666667,"dds":0.6056338028169015,"last_synced_commit":"0ec47260c4faa3fd70b62254a54366063b86f624"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fawxy%2FCBPinEntryView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fawxy%2FCBPinEntryView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fawxy%2FCBPinEntryView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fawxy%2FCBPinEntryView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fawxy","download_url":"https://codeload.github.com/Fawxy/CBPinEntryView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923703,"owners_count":17992567,"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":[],"created_at":"2024-01-05T20:16:27.465Z","updated_at":"2024-12-09T16:31:06.615Z","avatar_url":"https://github.com/Fawxy.png","language":"Swift","funding_links":[],"categories":["UI","Libs","TextField","UI [🔝](#readme)"],"sub_categories":["TextField \u0026 TextView","UI","Other free courses"],"readme":"# CBPinEntryView\n\n[![Version](https://img.shields.io/cocoapods/v/CBPinEntryView.svg?style=flat)](http://cocoapods.org/pods/CBPinEntryView)\n[![License](https://img.shields.io/cocoapods/l/CBPinEntryView.svg?style=flat)](http://cocoapods.org/pods/CBPinEntryView)\n[![Platform](https://img.shields.io/cocoapods/p/CBPinEntryView.svg?style=flat)](http://cocoapods.org/pods/CBPinEntryView)\n\nCBPinEntryView is a view written in Swift to allow easy and slick entry of pins, codes or passwords. It allows backspacing, dismissal of keyboard and continuing where you left off, the whole code is given as a single String or Int and the view is very easily customisable in code or the storyboard.\n\n## Preview\n\n\n\n| Enter pins easily! | Communicate user error | Clear the text field to retry | Secure entry mode |\n|:------------------:|:----------------------:|:-----------------------------:|:-----------------:|\n| ![](http://i.imgur.com/75oYhG5.gif) | ![](http://i.imgur.com/UU5Xm7X.gif) | ![](http://i.imgur.com/ABZH0Ea.gif) | ![](http://i.imgur.com/zAhXL7O.gif) |\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nCBPinEntryView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"CBPinEntryView\"\n```\nPut a view into your storyboard or xib and set it's class to `CBPinEntryView`. Create an outlet in your file and customise either with the IBInspectable properties or in your code.\n\n### Get the code\n\nGet the code with either `entryView.getPinAsString()` or `entryView.getPinAsInt()`.\n\n### Entry callbacks\n\nThere are two delegate methods `entryChanged(_ completed: Bool)` and `entryCompleted(with entry: String?)`. The first will let you know each time the entry is changed, and whether they have completed the entry. The second function will get called when the user fills out the entry to completion and the entered pin will be passed.\n\n### Secure entry\n\nSecure entry with customisable secure character (change from ● to ✱ or any other character). Enable `isSecure`.\nChange the secure entry character by setting the `secureCharacter` property.\n\n### Display errors\n\nThere is an error mode which can be enabled with `pinEntryView.setError(isError: true)` and disabled with `pinEntryView.setError(isError: false)`. Whether error mode is enabled can be checked with `pinEntryView.errorMode`. Calling `pinEntryView.resignFirstResponder()` will hide the keyboard and disable the error mode.\n\n### Allow or restrict characters\n\nSet `allowedEntryTypes` and choose between `any`, `numerical`, `alphanumeric`, `letters` to enable or restrict characters. Set `textFieldCapitalization` to choose what kind of capitalisation you would like on the text field.\n\n### Customise keyboard type!\n\nThe keyboard types are an enum with int raw values. Options are as follows:\n\n```\n0: default // Default type for the current input method.\n1: asciiCapable // Displays a keyboard which can enter ASCII characters\n2: numbersAndPunctuation // Numbers and assorted punctuation.\n3: URL // A type optimized for URL entry (shows . / .com prominently).\n4: numberPad // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.\n5: phonePad // A phone pad (1-9, *, 0, #, with letters under the numbers).\n6: namePhonePad // A type optimized for entering a person's name or phone number.\n7: emailAddress // A type optimized for multiple email address entry (shows space @ . prominently).\n8: decimalPad // A number pad with a decimal point.\n9: twitter // A type optimized for twitter text entry (easy access to @ #)\n```\n\n## License\n\nCBPinEntryView 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%2FFawxy%2FCBPinEntryView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFawxy%2FCBPinEntryView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFawxy%2FCBPinEntryView/lists"}