Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kolesa-team/ios_pinCodeTextField
A customizable verification code textField. Can be used for phone verification codes, passwords etc
https://github.com/kolesa-team/ios_pinCodeTextField
Last synced: 3 months ago
JSON representation
A customizable verification code textField. Can be used for phone verification codes, passwords etc
- Host: GitHub
- URL: https://github.com/kolesa-team/ios_pinCodeTextField
- Owner: kolesa-team
- License: mit
- Created: 2018-03-15T04:25:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T17:32:44.000Z (over 1 year ago)
- Last Synced: 2024-04-23T19:19:37.740Z (6 months ago)
- Language: Objective-C
- Size: 468 KB
- Stars: 65
- Watchers: 9
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - KKPinCodeTextField - A customizable verification code textField for phone verification codes, passwords etc. (Security / Unofficial)
- awesome-ios-star - KKPinCodeTextField - A customizable verification code textField for phone verification codes, passwords etc. (Security / Unofficial)
README
# KKPinCodeTextField
A customizable verification code textField. Can be used for phone verification codes, passwords etc.
Настраиваемое текстовое поле для кода верификации. Может быть использованно для подтверждения телефона, email-a, ввода пароля и т.д.
![](Screenshots/example.gif)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- iOS 8.0+
## Installation
KKPinCodeTextField is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'KKPinCodeTextField'
```## Usage
1. Interface Builder:
Add a `UITextField` in your *Interface Builder* and change the class of a textField from `UITextField` to `KKPinCodeTextField`. You can set the properties in the *Attributes Inspector* and see a live preview
![](Screenshots/usage.gif)
2. Programmatically:
```
KKPinCodeTextField *textField = [[KKPinCodeTextField alloc] initWithFrame:frame];
[self.view addSubview:textField];
```## Customization
##### digitsCount
Verification code length. Default value is 4##### borderHeight
Bottom borders height. Default value is 4##### bordersSpacing
Spacing between bottom borders. Default value is 10##### filledDigitBorderColor
Bottom border color when digit is filled. Default value is UIColor.lightGrayColor##### emptyDigitBorderColor
Bottom border color when digit is empty. Default value is UIColor.redColor## Author
Amirzhan, [email protected]
## Contributing
Bug reports and pull requests are welcome
## License
KKPinCodeTextField is available under the MIT license. See the LICENSE file for more info.