{"id":15038734,"url":"https://github.com/kbiakov/kbnumberpad","last_synced_at":"2025-10-25T14:16:14.151Z","repository":{"id":56917074,"uuid":"91244404","full_name":"kbiakov/KBNumberPad","owner":"kbiakov","description":"Custom iOS number pad with embedding as input view.","archived":false,"fork":false,"pushed_at":"2018-01-14T15:56:44.000Z","size":93,"stargazers_count":20,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T15:51:30.175Z","etag":null,"topics":["cocoapod","cocoapods","custom-view","ios","ios-lib","ios-library","ios-swift","ios-ui","number-pad","swift","swift-3","swift-library"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kbiakov.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-05-14T13:15:52.000Z","updated_at":"2024-10-17T00:51:08.000Z","dependencies_parsed_at":"2022-08-21T03:50:56.424Z","dependency_job_id":null,"html_url":"https://github.com/kbiakov/KBNumberPad","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbiakov%2FKBNumberPad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbiakov%2FKBNumberPad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbiakov%2FKBNumberPad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbiakov%2FKBNumberPad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbiakov","download_url":"https://codeload.github.com/kbiakov/KBNumberPad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239084401,"owners_count":19578773,"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":["cocoapod","cocoapods","custom-view","ios","ios-lib","ios-library","ios-swift","ios-ui","number-pad","swift","swift-3","swift-library"],"created_at":"2024-09-24T20:39:56.924Z","updated_at":"2025-10-25T14:16:09.116Z","avatar_url":"https://github.com/kbiakov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KBNumberPad (iOS)\n\n[![CI Status](http://img.shields.io/travis/kbiakov/KBNumberPad.svg?style=flat)](https://travis-ci.org/kbiakov/KBNumberPad)\n[![Version](https://img.shields.io/cocoapods/v/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad)\n[![License](https://img.shields.io/cocoapods/l/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad)\n[![Platform](https://img.shields.io/cocoapods/p/KBNumberPad.svg?style=flat)](http://cocoapods.org/pods/KBNumberPad)\n\n\u003cb\u003eKBNumberPad\u003c/b\u003e is a customizable number pad as replacement of default.\n\n## Example\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n- Xcode 8.0+\n- iOS 9.0+\n- Swift 3.0+\n\n## Setup\n\n### CocoaPods\n\u003cb\u003eKBNumberPad\u003c/b\u003e is available through [CocoaPods](http://cocoapods.org), dependency manager for Cocoa projects. To install it, run the command:\n```bash\n$ gem install cocoapods\n```\n\nTo integrate \u003cb\u003eKBNumberPad\u003c/b\u003e into your Xcode project using CocoaPods, specify it in your `Podfile`:\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'KBNumberPad', '~\u003e 1.0.1'\nend\n```\n\nThen, run the following command:\n```bash\n$ pod install\n```\n\n## Usage\n\n1. Create input view (and customize, see section below):\n```Swift\nlet numberPad = KBNumberPad()\n```\n\n2. Set as input view for your text field (or other):\n```Swift\ntextField.inputView = numberPad\n```\n\n3. Set delegate:\n```Swift\nnumberPad.delegate = self\n```\n\n4. Define behavior of 3 callbacks:\n```Swift\nfunc onNumberClicked(numberPad: KBNumberPad, number: Int) {}\nfunc onDoneClicked(numberPad: KBNumberPad) {}\nfunc onClearClicked(numberPad: KBNumberPad) {}\n```\n\n### Customization\nYou can customize base components of this number pad view as follows:\n```Swift\nnumberPad.setDelimiterColor(UIColor.lightGray)\nnumberPad.setButtonsColor(UIColor.black)\nnumberPad.setButtonsBackgroundColor(UIColor.white)\n```\n\nThis snippet shows that all buttons grouped, but there are methods to do setup separately like:\n```Swift\nnumberPad.setNumberButtonsColor(UIColor.black)\nnumberPad.setClearButtonColor(UIColor.darkGray)\nnumberPad.setDoneButtonColor(UIColor.darkGray)\n```\n\nThere is params to customize: it's __color__ of grouped or all buttons, __font__ \u0026 __background__.\nAlso you can change the __icon__ for clear button.\n\n## Screenshots\n[![2017-05-14_20.29.02.png](https://s3.postimg.org/r1fswvhg3/2017-05-14_20.29.02.png)](https://postimg.org/image/7wcjn42rz/)\n[![2017-05-14_20.51.04.png](https://s13.postimg.org/f7akftz3b/2017-05-14_20.51.04.png)](https://postimg.org/image/qwek3sq1v/)\n[![2017-05-14_20.59.17.png](https://s12.postimg.org/518601cm5/2017-05-14_20.59.17.png)](https://postimg.org/image/jx6p7mo0p/)\n\n## Author\n### [Kirill Biakov](https://github.com/kbiakov)\n\n## License\n\u003cb\u003eKBNumberPad\u003c/b\u003e is available under the [Apache License 2.0](https://github.com/kbiakov/KBNumberPad/blob/master/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbiakov%2Fkbnumberpad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbiakov%2Fkbnumberpad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbiakov%2Fkbnumberpad/lists"}