All Projects → keepworks → KWVerificationCodeView

keepworks / KWVerificationCodeView

Licence: MIT license
A customisable verification code view to capture OTPs

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to KWVerificationCodeView

DPOTPView
Customisable OTP view and Passcode view
Stars: ✭ 52 (-37.35%)
Mutual labels:  otp, verification, otpauth, verification-code
laravel-otp-login
Adds a customizable, translatable, configurable OTP verification step to Laravel Auth. You can add your own SMS provider too.
Stars: ✭ 16 (-80.72%)
Mutual labels:  otp, verification
otp-view
OTP View
Stars: ✭ 32 (-61.45%)
Mutual labels:  otp, otpview
one-wallet
1wallet - unconventional keyless, non-custodial wallet secured by Google Authenticator. EVM-compatible, smart contract operated, with composable security.
Stars: ✭ 85 (+2.41%)
Mutual labels:  otp, otpauth
Concuerror
Concuerror is a stateless model checking tool for Erlang programs.
Stars: ✭ 277 (+233.73%)
Mutual labels:  otp, verification
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (-16.87%)
Mutual labels:  otp, otpauth
passwordless
Passwordless authentication server, supports OTP, WebAuthn, plan to implement TOTP and mobile biometric authentication
Stars: ✭ 34 (-59.04%)
Mutual labels:  otp, otpauth
react-native-sms-user-consent
React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort.
Stars: ✭ 45 (-45.78%)
Mutual labels:  otp, verification
extract otp secret keys
Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app
Stars: ✭ 217 (+161.45%)
Mutual labels:  otp, otpauth
Flutter pinput
🔥🚀 Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations
Stars: ✭ 157 (+89.16%)
Mutual labels:  otp, verification
Cuneiform
Cuneiform distributed programming language
Stars: ✭ 175 (+110.84%)
Mutual labels:  otp
Otp cheatsheet
Base OTP behaviors presented as schemas
Stars: ✭ 190 (+128.92%)
Mutual labels:  otp
Libreoffice Impress Templates
Freely-licensed LibreOffice Impress templates
Stars: ✭ 238 (+186.75%)
Mutual labels:  otp
flutter otp
A Flutter package for iOS and Android for sending and verifying OTP to a Phone number.
Stars: ✭ 59 (-28.92%)
Mutual labels:  otp
React Otp Input
✔️ OTP Input Component for React
Stars: ✭ 177 (+113.25%)
Mutual labels:  otp
Gotp
Golang OTP(One-Time Password) Library.
Stars: ✭ 233 (+180.72%)
Mutual labels:  otp
React Native Sms Retriever
Android SMS Retriever API for React Native.
Stars: ✭ 177 (+113.25%)
Mutual labels:  otp
Multiotp
multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
Stars: ✭ 173 (+108.43%)
Mutual labels:  otp
Otpview
A custom view to enter otp/pin of different sizes used usually in cases of authentication.
Stars: ✭ 172 (+107.23%)
Mutual labels:  otp
crotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (-25.3%)
Mutual labels:  otp

KWVerificationCodeView

Build Status Version License Platform

A customisable verification code view with built in validation. Can be used for one time passwords (OTPs), email verification codes etc.

Screenshot

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8 or later
  • Swift 5.0
  • Xcode 10.2 or later

Installation

KWVerificationCodeView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "KWVerificationCodeView"

Or for Swift 4.2 support use

pod "KWVerificationCodeView", '0.3.0'

Or for Swift 4 use:

pod "KWVerificationCodeView", '0.2.0'

Usage

Add a UIView in your Storyboard and change the class to KWVerificationCodeView. You can set the properties in the Attributes Inspector and see a live preview:

Interface Builder Screenshot

The properties which can be directly set in the Attributes Inspector and their default values are as follows:

  • Underline Color - Dark Gray Color

  • Underline Selected Color - Black Color

  • Text Color - Dark Text Color

  • Digits - 4

  • Text Size - 24.0

  • Text Font - System Font

  • Text Field Background Color - Clear Color

  • Text Field Tint Color - Blue Color

  • Dark Keyboard - Default Keyboard Appearance

Customizable properties

  • keyboardType - Sets the keyboard type (Defaults to Number Pad when not set)

    verificationCodeView.keyboardType = UIKeyboardType.emailAddress
    

Variables

The KWVerificationCodeView has the following variables:

isTappable: Bool

Makes the KWVerficationCodeView tappable. Default value is false

Methods

The KWVerificationCodeView has the following methods:

hasValidCode() -> Bool

Returns true when the entered code is valid.

getVerificationCode() -> String

Focus on First Text Field

focus()

Returns the validation code.

clear()

Clears the verification code view and first field becomes first responder

Protocols

KWVerificationCodeViewDelegate

KWVerificationCodeViewDelegate protocol has the following method:

didChangeVerificationCode()

Notifies that the text in KWVerificationCodeView has been changed. This is especially useful in situations where you have to enable the submit button only if the verification code is valid.

Author

KeepWorks, [email protected]

Credits

KWVerificationCodeView is owned and maintained by KeepWorks.

N|Solid

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/keepworks/KWVerificationCodeView.

License

KWVerificationCodeView is available under the MIT License. See the License file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].