{"id":1932,"url":"https://github.com/siavashalipour/SAPinViewController","last_synced_at":"2025-08-02T05:33:24.659Z","repository":{"id":62453274,"uuid":"66197430","full_name":"siavashalipour/SAPinViewController","owner":"siavashalipour","description":"A Swifty iOS PIN Screen","archived":false,"fork":false,"pushed_at":"2018-12-09T22:21:18.000Z","size":5357,"stargazers_count":20,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-23T19:19:44.869Z","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/siavashalipour.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":"2016-08-21T12:21:29.000Z","updated_at":"2024-01-16T17:42:23.000Z","dependencies_parsed_at":"2022-11-01T23:46:05.006Z","dependency_job_id":null,"html_url":"https://github.com/siavashalipour/SAPinViewController","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siavashalipour%2FSAPinViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siavashalipour%2FSAPinViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siavashalipour%2FSAPinViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siavashalipour%2FSAPinViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siavashalipour","download_url":"https://codeload.github.com/siavashalipour/SAPinViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228443822,"owners_count":17920794,"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:15:59.279Z","updated_at":"2024-12-06T09:30:46.654Z","avatar_url":"https://github.com/siavashalipour.png","language":"Swift","funding_links":[],"categories":["Security"],"sub_categories":["Unofficial","Other free courses"],"readme":"# SAPinViewController\n[![Build Status](https://travis-ci.org/siavashalipour/SAPinViewController.svg)](https://travis-ci.org/siavashalipour/SAPinViewController)\n[![Version](https://img.shields.io/cocoapods/v/SAPinViewController.svg?style=flat)](http://cocoapods.org/pods/SAPinViewController)\n[![License](https://img.shields.io/cocoapods/l/SAPinViewController.svg?style=flat)](http://cocoapods.org/pods/SAPinViewController)\n[![Platform](https://img.shields.io/cocoapods/p/SAPinViewController.svg?style=flat)](http://cocoapods.org/pods/SAPinViewController)\n\nSimple and easy to use default iOS PIN screen. This simple library allows you to draw a fully customisable PIN screen same as the iOS default PIN view.\nMy inspiration to create this library was form [THPinViewController](https://github.com/antiraum/THPinViewController), however ```SAPinViewController``` is completely implemented in ```Swift```. Also the main purpose of creating this library was to have simple, easy to use and fully customisable PIN screen.\n## Features\n- Support both iPhone and iPad landscape/portrait\n- Designed with the help of [SnapKit](https://github.com/SnapKit/SnapKit)\n- Fully customisable:\n\t- change title font/colour\n\t- change subtitle font/colour\n\t- change numbers font/colour\n\t- change alphabet font/color\n\t- change numbers boundary colour\n\t- change PIN dots color\n\t- add solid background colour\n\t- add custom image as background and gets blurred automatically\n\t- hide alphabets\n\t- change cancel button font/colour\n\t- ###### NEW in 0.1.2: \n\t\t- now you can have your logo on top as well\n\t\t- now you can have rounded rect as well as circle type UI\n\t\n## Usage\n```swift\n// initial a \"SAPinViewController\" via the designate initialiser\nlet pinVC = SAPinViewController(withDelegate: self, backgroundImage: UIImage(named: \"bg3\"))\n// setup different properties\npinVC.subtitleText = \"Your passcode is required to enable Touch ID\"\npinVC.buttonBorderColor = UIColor.whiteColor()\npinVC.alphabetColor = UIColor.whiteColor()\npinVC.showAlphabet = true // default is true\n// ... and other properties\n// present it\npresentViewController(pinVC, animated: true, completion: nil)\n// implement delegate methods\nextension ViewController: SAPinViewControllerDelegate {\n    func pinEntryWasCancelled() {\n        dismissViewControllerAnimated(true, completion: nil)\n    }\n    func pinEntryWasSuccessful() {\n        dismissViewControllerAnimated(true, completion: nil)\n    }\n    func pinWasIncorrect() {\n\n    }\n    func isPinValid(pin: String) -\u003e Bool {\n        return pin == pinString\n    }\n}\n```\n## Screenshots\nWith Logo:\n\n\u003cimg src=\"6PlusLogo.png\" width=\"79%\" /\u003e\n\niPhone 4\n\n\u003cimg src=\"4s.png\" width=\"49%\" /\u003e\n\niPhone 5\n\n\u003cimg src=\"5.png\" width=\"59%\" /\u003e\n\niPhone 6\n\n\u003cimg src=\"6.png\" width=\"69%\" /\u003e\n\niPhone 6 plus\n\n\u003cimg src=\"6Plus.png\" width=\"79%\" /\u003e\n\niPad landscape\n\n\u003cimg src=\"ipad-landscape.png\" width=\"66%\" /\u003e\n\niPad portrait\n\n\u003cimg src=\"iPad-potrait.png\" width=\"66%\" /\u003e\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n- Minimum iOS 8\n\n## Installation\n\nSAPinViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"SAPinViewController\"\n```\n\n## Author\n\nSiavash, siavash@siavashalipour.com\n\n## License\n\nSAPinViewController is available under the MIT license. See the LICENSE file for more info.\n\n## Contribution\nIf you have any feature requests or bug-fixes feel free to create an issue or send a pull request. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiavashalipour%2FSAPinViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiavashalipour%2FSAPinViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiavashalipour%2FSAPinViewController/lists"}