{"id":15037047,"url":"https://github.com/asifnewaz/qrscannercustomisable","last_synced_at":"2026-04-08T14:03:16.163Z","repository":{"id":79515431,"uuid":"190592031","full_name":"Asifnewaz/QRScannerCustomisable","owner":"Asifnewaz","description":"Programatically created \u0026 completely customisable  QR code scanner with animation. Animation is also customizable","archived":false,"fork":false,"pushed_at":"2019-06-06T18:53:56.000Z","size":2663,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T00:32:51.391Z","etag":null,"topics":["animated","ios","qrcode-scanner","swift3","swift4","swift5","xcode10"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asifnewaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-06-06T14:05:27.000Z","updated_at":"2019-06-14T17:11:05.000Z","dependencies_parsed_at":"2023-08-01T01:31:12.223Z","dependency_job_id":null,"html_url":"https://github.com/Asifnewaz/QRScannerCustomisable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Asifnewaz/QRScannerCustomisable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asifnewaz%2FQRScannerCustomisable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asifnewaz%2FQRScannerCustomisable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asifnewaz%2FQRScannerCustomisable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asifnewaz%2FQRScannerCustomisable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asifnewaz","download_url":"https://codeload.github.com/Asifnewaz/QRScannerCustomisable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asifnewaz%2FQRScannerCustomisable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["animated","ios","qrcode-scanner","swift3","swift4","swift5","xcode10"],"created_at":"2024-09-24T20:33:12.307Z","updated_at":"2026-04-08T14:03:16.118Z","avatar_url":"https://github.com/Asifnewaz.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customisable QR-Code Scanner\n\nA simple qrcode scanner in ```swift5```. Scan UI and animation used in scan view is ```programatically customisable```.\n\n## Feature\n\n- QR Code Scan.\n- Scan using camera.\n- Image scan from gallery.\n- Scan view is fully customisable.\n- Scan view animation can be customisable.\n\n\n\n## Usage\n\n1. Download project file \n2. Find ```QRScanClasses```  folder \u0026 add the folder to your own project.\n3. Find ```Extensions```  folder \u0026 add the folder to your own project.\n4. Great !!! 👌 Now add the following code to your ```viewController```. you can add this in ```viewDidLoad``` or any clickable ```@IBAction``` .\n\n```\nlet scanner = QRCodeScannerController(cameraImage: UIImage(named: \"ImageIcon40\"),\ncancelImage: UIImage(named: \"cancel\"), flashOnImage: UIImage(named: \"Flash40\"),\nflashOffImage: UIImage(named: \"Flash40\"))\n\nscanner.delegate = self\nscanner.mode = .camera\nself.present(scanner, animated: true, completion: nil)\n```\n\n5.  Also add this extension to your view controller. here you will get the output from scanner\n\n```\nextension ViewController: QRScannerCodeDelegate {\n    func qrScanner(_ controller: UIViewController, scanDidComplete result: String) {\n        print(\"result:\\(result)\")\n    }\n    \n    func qrScannerDidFail(_ controller: UIViewController, error: String) {\n        print(\"error:\\(error)\")\n    }\n    \n    func qrScannerDidCancel(_ controller: UIViewController) {\n        print(\"SwiftQRScanner did cancel\")\n    }\n}\n\n```\n\n## To Customise View\n\n- to change the size/color of white square shape edit ```SquareView.swift```\n- to add any button/image/view or modify check ```SwiftQRScannerUIView.swift```.\n- to change animation check ```LBXScanLineAnimation.swift``` .\n\n\n** **\n**```UIColorExtension.swift``` is used to convert hex string into UIColor.**\n\n*Example:  to add white color in text* \n\n``` \nlet label = UILabel()\nlabel.textColor = UIColor.colorFrom(hexString: \"FFFFFF\")\n``` \n\n**```UIViewExtension.swift``` is used to add constrain programatically.** \n\n** **\n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasifnewaz%2Fqrscannercustomisable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasifnewaz%2Fqrscannercustomisable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasifnewaz%2Fqrscannercustomisable/lists"}