{"id":2573,"url":"https://github.com/efremidze/NumPad","last_synced_at":"2025-08-03T00:31:56.114Z","repository":{"id":56761190,"uuid":"49161503","full_name":"efremidze/NumPad","owner":"efremidze","description":"Number Pad (inspired by Square)","archived":false,"fork":false,"pushed_at":"2019-03-26T23:08:02.000Z","size":1749,"stargazers_count":84,"open_issues_count":0,"forks_count":17,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-12-05T16:51:38.278Z","etag":null,"topics":["apple","carthage","cocoapods","digits","keyboard","number","numpad","pad","square","swift"],"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/efremidze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-06T21:04:56.000Z","updated_at":"2024-10-17T02:23:40.000Z","dependencies_parsed_at":"2022-08-16T02:00:49.117Z","dependency_job_id":null,"html_url":"https://github.com/efremidze/NumPad","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FNumPad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FNumPad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FNumPad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FNumPad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efremidze","download_url":"https://codeload.github.com/efremidze/NumPad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510723,"owners_count":17931757,"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":["apple","carthage","cocoapods","digits","keyboard","number","numpad","pad","square","swift"],"created_at":"2024-01-05T20:16:17.255Z","updated_at":"2024-12-06T18:30:33.617Z","avatar_url":"https://github.com/efremidze.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Keyboard","Other free courses"],"readme":"# NumPad\n\n[![Language](https://img.shields.io/badge/Swift-4-orange.svg?style=flat)](https://swift.org)\n[![Version](https://img.shields.io/cocoapods/v/NumPad.svg?style=flat)](http://cocoapods.org/pods/NumPad)\n[![CI Status](http://img.shields.io/travis/efremidze/NumPad.svg?style=flat)](https://travis-ci.org/efremidze/NumPad)\n[![codebeat badge](https://codebeat.co/badges/c41fb90e-aa9f-4a40-85b4-9df9011e7931)](https://codebeat.co/projects/github-com-efremidze-numpad)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nNumber Pad inspired by [Square](https://square.com). This module is based on [LEAmountInputView](https://github.com/efremidze/LEAmountInputView).\n\n![Demo](demo.gif)\n\n```\n$ pod try NumPad\n```\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 9.0+\n- Swift 4 (NumPad 3.x), Swift 3 (NumPad 2.x), Swift 2.3 (NumPad 1.x)\n\n## Installation\n\n### CocoaPods\nTo install with [CocoaPods](http://cocoapods.org/), simply add this in your `Podfile`:\n```ruby\nuse_frameworks!\npod \"NumPad\"\n```\n\n### Carthage\nTo install with [Carthage](https://github.com/Carthage/Carthage), simply add this in your `Cartfile`:\n```ruby\ngithub \"efremidze/NumPad\"\n```\n\n### Manually\n1. Download and drop ```NumPad.swift``` in your project.  \n2. Congratulations!\n\n## Usage\n\nAdd `NumPad` to your view.\n\n```swift\nimport NumPad\n\nlet numPad = NumPad(frame: CGRect(x: 0, y: 0, width: 320, height: 600))\nnumPad.dataSource = self\nnumPad.delegate = self\naddSubview(numPad)\n```\n\nUse the `DefaultNumPad` for a preconfigured dataSource and delegate.\n\n### Data Source\n```swift\n// number of rows\nfunc numberOfRowsInNumPad(numPad: NumPad) -\u003e Int\n\n// number of columns for row\nfunc numPad(numPad: NumPad, numberOfColumnsInRow row: Row) -\u003e Int\n\n// item for position\nfunc numPad(numPad: NumPad, itemAtPosition position: Position) -\u003e Item\n```\n\n### Delegate\n```swift\n// handle item tap\nfunc numPad(numPad: NumPad, itemTapped item: Item, atPosition position: Position)\n\n// item size for position\nfunc numPad(numPad: NumPad, sizeForItemAtPosition position: Position) -\u003e CGSize\n```\n\n## Contributions\n\nContributions are totally welcome.\n\n## License\n\nNumPad 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%2Fefremidze%2FNumPad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefremidze%2FNumPad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefremidze%2FNumPad/lists"}