Giter Site home page Giter Site logo

mindinventory / miotpverificationspm Goto Github PK

View Code? Open in Web Editor NEW
28.0 8.0 8.0 24 KB

This package is used for validating the OTP fields.

Home Page: https://www.mindinventory.com/iphone-application-development.php

Swift 100.00%
swift ios otp-verification swift-package-manager otp-fields

miotpverificationspm's Introduction

MIOTPVerificationSPM

This package is used for validating the OTP fields.

In this package, there are only two classes one for OTP view and another for OTPTextFields, and also there are some extensions that are useful for this package.

For using this package please follow the below steps.

  1. First, add this package to your project.
  2. Then add a view in your storyboard or XIB.
  3. Give to OTPView.
  4. Import MIOTPVerificationSPM to your ViewController.
  5. Take the IBOutlet for that view.
  6. Now you can access all properties from your ViewController as well from Storyboard or XIB.
  7. Add two images in your assets which you want to add for a secure symbol with the name of "ic_dot" and "ic_star".

miotpverificationspm's People

Contributors

patelshail avatar riddhi-mi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

miotpverificationspm's Issues

Delete Backward issue

when secureEntrySymbol = .star then deleteBackward. i have attached a video.

F111BF60-EC30-4626-BB6B-CF35D41248ED.mp4

.

I am getting a different UI.

func setupOTP() {
otpview.initializeOTPUI()
otpview.fieldsCount = 4
otpview.borderWidth = 2
otpview.emptyFieldBorderColor = UIColor(fromHex: PreferenceKeys.validOTP)
otpview.isSecureEntry = true
otpview.secureEntrySymbol = .dot
otpview.errorBorderColor = UIColor(fromHex: PreferenceKeys.invalidOTP)
otpview.textColor = UIColor(fromHex: PreferenceKeys.loginMessageColor)
otpview.cursorColor = UIColor(fromHex: PreferenceKeys.loginMessageColor)
otpview.secureEntrySymbolColor = .clear
otpview.enteredFieldBackgroundColor = .clear
otpview.otpFieldDisplayType = .box
otpview.delegate = self
otpview.isTextfieldBecomFirstResponder = true
}

Can you please help me how to fix this issue.

Screenshot 2024-01-02 at 6 09 55 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.