{"id":32325864,"url":"https://github.com/wgy6055/wgdigitfield","last_synced_at":"2026-02-20T23:02:17.349Z","repository":{"id":56926347,"uuid":"153732814","full_name":"wgy6055/WGDigitField","owner":"wgy6055","description":"📱 A customizable digit input field.","archived":false,"fork":false,"pushed_at":"2020-07-17T05:30:43.000Z","size":89,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-11T06:58:40.993Z","etag":null,"topics":["autofill","cocoapods","customizable","digit","input","ios","keyboard","objective-c","security-code","uicontrol","uikit","uitextfield"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/wgy6055.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":"2018-10-19T05:51:12.000Z","updated_at":"2023-06-27T14:39:57.000Z","dependencies_parsed_at":"2022-08-20T22:40:09.948Z","dependency_job_id":null,"html_url":"https://github.com/wgy6055/WGDigitField","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wgy6055/WGDigitField","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgy6055%2FWGDigitField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgy6055%2FWGDigitField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgy6055%2FWGDigitField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgy6055%2FWGDigitField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgy6055","download_url":"https://codeload.github.com/wgy6055/WGDigitField/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgy6055%2FWGDigitField/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29667119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["autofill","cocoapods","customizable","digit","input","ios","keyboard","objective-c","security-code","uicontrol","uikit","uitextfield"],"created_at":"2025-10-23T13:24:41.702Z","updated_at":"2026-02-20T23:02:17.344Z","avatar_url":"https://github.com/wgy6055.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WGDigitField\n\n[![CI Status](https://img.shields.io/travis/王冠宇/WGDigitField.svg?style=flat)](https://travis-ci.org/王冠宇/WGDigitField)\n[![Version](https://img.shields.io/cocoapods/v/WGDigitField.svg?style=flat)](https://cocoapods.org/pods/WGDigitField)\n[![License](https://img.shields.io/cocoapods/l/WGDigitField.svg?style=flat)](https://cocoapods.org/pods/WGDigitField)\n[![Platform](https://img.shields.io/cocoapods/p/WGDigitField.svg?style=flat)](https://cocoapods.org/pods/WGDigitField)\n\n## Overview\n\n**WGDigitField** is a customizable digit input control for iOS. You can initialize a powerful digit input control with a very simple way. \n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Features\n\n* Customizable style for every single digit view.\n* Customizable animation for highlighting and unhighlighting digit view. \n* Supporting autofill for iOS 12. \n\n\u003cdiv align=center\u003e\n\u003cimg src=https://s1.ax1x.com/2018/10/20/i0qmqO.gif width=200/\u003e\n\u003c/div\u003e\n\n## Installation\n\nWGDigitField is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'WGDigitField'\n```\n\n## How To Use\n\n```objectivec\n// WGDigitField\u003cWGDigitView\u003cUIView *\u003e *\u003e means you have to initialize this WGDigitField with an instance of WGDigitView\u003cUIView *\u003e as digitView\nWGDigitField\u003cWGDigitView\u003cUIView *\u003e *\u003e *field = [[WGDigitField\u003cWGDigitView\u003cUIView *\u003e *\u003e alloc] initWithDigitViewInitBlock:^WGDigitView\u003cUIView *\u003e * (NSInteger index){\n    // initializing a background view (UIView or any subclass of UIView if you want)\n    UIView *background = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 45)];\n    background.backgroundColor = [UIColor whiteColor];\n    background.layer.borderColor = [UIColor grayColor].CGColor;\n    background.layer.borderWidth = 1.f;\n    background.layer.cornerRadius = 3.f;\n    // `WGDigitView\u003cUIView *\u003e` means you have to initialize this WGDigitView with an instance of UIView as backgroundView\n    return [[WGDigitView\u003cUIView *\u003e alloc] initWithBackgroundView:background digitFont:[UIFont systemFontOfSize:25.f] digitColor:[UIColor blackColor]];\n\n} numberOfDigits:6 leadSpacing:25 tailSpacing:25 weakenBlock:^(WGDigitView\u003cUIView *\u003e * _Nonnull digitView) {\n    // getting it normal\n    digitView.backgroundView.layer.borderColor = [UIColor grayColor].CGColor;\n    digitView.backgroundView.layer.borderWidth = 1.f;\n\n} highlightedBlock:^(WGDigitView\u003cUIView *\u003e * _Nonnull digitView) {\n    // making some UI changes\n    digitView.backgroundView.layer.borderColor = [UIColor redColor].CGColor;\n    digitView.backgroundView.layer.borderWidth = 2.f;\n    // or implementing animations\n    CAKeyframeAnimation *animation = ...\n} fillCompleteBlock:^(WGDigitField * _Nonnull digitField, NSArray\u003cWGDigitView\u003cUIView *\u003e *\u003e * _Nonnull digitViewArray, NSString * _Nonnull text) {\n    // dismissing keyboard and starting requests\n    [digitField resignFirstResponder];\n}];\n```\n\n## Author\n\n王冠宇, Weibo: [@冠宇住在贝克街](http://weibo.com/131471169)\n\n## License\n\nWGDigitField 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%2Fwgy6055%2Fwgdigitfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgy6055%2Fwgdigitfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgy6055%2Fwgdigitfield/lists"}