Latest 0.1.8
Homepage https://github.com/Sunspension/VKPinCodeView
License MIT
Platforms ios 9.0
Authors

Build Status
CocoaPods Compatible
Carthage Compatible

Features

  • [x] Variable PIN length
  • [x] Two display styles (underline and border)
  • [x] Customizable appearence
  • [x] Error status with / without shake animation
  • [x] Highlight selected entry with / without animation
  • [x] Callbacks (begin editing, change code, complete)
  • [x] Custom input validation

Preview

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate VKPinCodeView into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'VKPinCodeView'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate VKPinCodeView into your Xcode project using Carthage, specify it in your Cartfile:

github "Sunspension/VKPinCodeView"

Manually

If you still do not use any of dependency managers, just ask yourself why you still do this?

Minimal Setup

override func viewDidLoad() {
   super.viewDidLoad()

      let pinView = VKPinCodeView(style: VKEntryViewStyle.border)
      pinView.translatesAutoresizingMaskIntoConstraints = false
      view.addSubview(pinView)
      pinView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 40).isActive = true
      pinView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -40).isActive = true
      pinView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
      pinView.heightAnchor.constraint(equalToConstant: 50).isActive = true
      pinView.becomeFirstResponder()
}

Contribute

VKPinCodeView is open to contribute, see contribution notes.

  • If you want to contribute, submit a pull request
  • If you found a bug, open an issue.
  • If you need help with a feature or need to disscuss something else please contact me [email protected]

Requirements

  • iOS 9.0+
  • Xcode 10.1+
  • Swift 4.2+

Author

Made with :heart: by Vladimir Kokhanevich

License

VKPinCodeView is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "VKPinCodeView",
    "version": "0.1.8",
    "summary": "VKPinCodeView is a library written in Swift that provides the easy peasy way to enter code from SMS.",
    "description": "VKPinCodeView is great when you need just in seconds make your custom entry PIN view. It is simple and elegant UI component written in Swift, and works like a charm. You can easily customise appearance and get auto fill iOS 12 feature right from the box.",
    "homepage": "https://github.com/Sunspension/VKPinCodeView",
    "license": "MIT",
    "authors": {
        "Vladimir Kokhanevich": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Sunspension/VKPinCodeView.git",
        "tag": "0.1.8"
    },
    "source_files": [
        "Source",
        "Source/*.swift"
    ],
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This