TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | Apache 2 |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Kirill Biakov.
KBNumberPad is a customizable number pad as replacement of default.
To run the example project, clone the repo, and run pod install
from the Example directory first.
You can customize base components of this number pad view as follows:
let numberPad = KBNumberPad()
numberPad.setDelimiterColor(UIColor.lightGray)
numberPad.setButtonsColor(UIColor.black)
numberPad.setButtonsBackgroundColor(UIColor.white)
This snippet shows that all buttons grouped, but there are methods to do setup separately like:
numberPad.setNumberButtonsColor(UIColor.black)
numberPad.setClearButtonColor(UIColor.darkGray)
numberPad.setDoneButtonColor(UIColor.darkGray)
There is params to customize: it’s color of grouped or all buttons, font & background. Also you can change the icon for clear button.
KBNumberPad is available under the Apache License 2.0 license.