CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Jan 2018 |
| SwiftSwift Version | 4.0 |
| SPMSupports SPM | ✓ |
Maintained by Lasha Efremidze.
Number Pad inspired by Square. This module is based on LEAmountInputView.
$ pod try NumPad
NumPad.swift in your project.At first, import NumPad library:
import NumPadSet the data source and delegate:
let numPad = NumPad()
numPad.dataSource = self
numPad.delegate = self
addSubview(numPad)Or use the DefaultNumPad for a preconfigured NumPad:
let numPad = DefaultNumPad()
addSubview(numPad)// number of rows
func numberOfRowsInNumPad(numPad: NumPad) -> Int
// number of columns for row
func numPad(numPad: NumPad, numberOfColumnsInRow row: Row) -> Int
// item for position
func numPad(numPad: NumPad, itemAtPosition position: Position) -> Item// handle item tap
func numPad(numPad: NumPad, itemTapped item: Item, atPosition position: Position)
// item size for position
func numPad(numPad: NumPad, sizeForItemAtPosition position: Position) -> CGSizeContributions are totally welcome.
NumPad is available under the MIT license. See the LICENSE file for more info.