{"id":30420612,"url":"https://github.com/macabeus/tvcodescreen","last_synced_at":"2025-10-07T06:21:30.303Z","repository":{"id":56924616,"uuid":"95747724","full_name":"macabeus/TvCodeScreen","owner":"macabeus","description":"🖋 Apple TV | Simple code screen","archived":false,"fork":false,"pushed_at":"2017-12-04T21:44:46.000Z","size":38,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T13:51:22.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cocoapods.org/pods/TvCodeScreen","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/macabeus.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":"2017-06-29T06:51:49.000Z","updated_at":"2022-01-15T00:01:45.000Z","dependencies_parsed_at":"2022-08-21T05:20:55.703Z","dependency_job_id":null,"html_url":"https://github.com/macabeus/TvCodeScreen","commit_stats":null,"previous_names":["getstalkr/tvcodescreen"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/macabeus/TvCodeScreen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macabeus%2FTvCodeScreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macabeus%2FTvCodeScreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macabeus%2FTvCodeScreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macabeus%2FTvCodeScreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macabeus","download_url":"https://codeload.github.com/macabeus/TvCodeScreen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macabeus%2FTvCodeScreen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271606604,"owners_count":24788981,"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-22T02:00:08.480Z","response_time":65,"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":"2025-08-22T08:19:39.219Z","updated_at":"2025-10-07T06:21:25.268Z","avatar_url":"https://github.com/macabeus.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/cocoapods/v/TvCodeScreen.svg?style=flat)](http://cocoapods.org/pods/TvCodeScreen)\n[![License](https://img.shields.io/cocoapods/l/TvCodeScreen.svg?style=flat)](http://cocoapods.org/pods/TvCodeScreen)\n[![Platform](https://img.shields.io/cocoapods/p/TvCodeScreen.svg?style=flat)](http://cocoapods.org/pods/TvCodeScreen)\n[![Build Status](https://travis-ci.org/getstalkr/TvCodeScreen.svg)](https://travis-ci.org/getstalkr/TvCodeScreen)\n[![codecov.io](https://codecov.io/gh/getstalkr/TvCodeScreen/branch/master/graphs/badge.svg)](https://codecov.io/gh/getstalkr/TvCodeScreen/branch/master)\n\n\n# TvCodeScreen\nSimple code screen for tvOS\n\n![](http://i.imgur.com/KRrcssn.png)\n\nYou can download this repository and see this example app.\n\n# How to use\n\n## Install\nIn `Podfile` add\n```\npod 'TvCodeScreen'\n```\n\nand use `pod install`.\n\n## Setup\n\nCreate a new UIView and set `CodeInputView` as a custom class\n![](http://i.imgur.com/o17Ts1I.png)\n\nIn Attribute Inspector tab you can change the code length and colors. The default code length value is 6 characters.\n\nThen, your view controller need subscriber the `CodeInputViewDelegate` protocol. For example:\n\n```swift\nclass ViewController: UIViewController {\n\n    @IBOutlet weak var myCodeInputView: CodeInputView!\n    @IBOutlet weak var labelResult: UILabel!\n    \n    override func viewDidLoad() {\n        myCodeInputView.delegate = self\n    }\n}\n\nextension ViewController: CodeInputViewDelegate {\n    \n    func finishTyping(_ codeInputView: CodeInputView, codeText: String) {\n        if codeText == \"42\" {\n            labelResult.text = \"Yes! Good number! 🎉\"\n        } else {\n            labelResult.text = \"No! Wrong number! 💥\"\n        }\n    }\n}\n```\n\nThe function `finishTyping(codeInputView:codeText:)` is called when the user fill the code, and the parameter `codeText` is the text typed by user.\n\n# TODO\n- [ ] Use dynamic type\n- [ ] Suport for letters\n\n**Maintainer**:\n\n\u003e [macabeus](http://macalogs.com.br/) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@macabeus](https://github.com/macabeus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacabeus%2Ftvcodescreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacabeus%2Ftvcodescreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacabeus%2Ftvcodescreen/lists"}