Latest 1.0.0
Homepage https://github.com/kolesa-team/ios_pinCodeTextField
License MIT
Platforms ios 8.0
Authors

A customizable verification code textField. Can be used for phone verification codes, passwords etc.

Настраиваемое текстовое поле для кода верификации. Может быть использованно для подтверждения телефона, email-a, ввода пароля и т.д.

KKPinCodeTextField

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. To install
it, simply add the following line to your Podfile:

pod 'KKPinCodeTextField'

Usage

  1. Interface Builder:

Add a UITextView in your Interface Builder and change the class of a textView from UITextView to KKPinCodeTextView. You can set the properties in the Attributes Inspector and see a live preview

KKPinCodeTextField

  1. 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.

Latest podspec

{
    "name": "KKPinCodeTextField",
    "version": "1.0.0",
    "summary": "TextField for verification codes",
    "description": "A customizable verification code textField. Can be used for phone verification codes, passwords etc.",
    "homepage": "https://github.com/kolesa-team/ios_pinCodeTextField",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Author Name": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kolesa-team/ios_pinCodeTextField.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KKPinCodeTextField/Classes/**/*"
}

Pin It on Pinterest

Share This