Comments (4)
@abhijithpp I tried to reproduce the issue but couldn't. Tried via IB & programatically. Can you give steps to reproduce this?
In the mean time you can trim the whitespaces using the following code:
code.trimmingCharacters(in: CharacterSet.whitespaces)
from kwverificationcodeview.
Input - 123
The method returns "123 "
PFA screenshot.
from kwverificationcodeview.
@abhijithpp if you want only 3 digits you need to set otpTextFieldView.digits = 3
If you are trying to validate the code using the code count, you can use the method otpTextFieldView.hasValidCode()
which returns true
if all the digits are filled, false
if there are empty fields
Check our example project for clear implementation regarding the same.
from kwverificationcodeview.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from kwverificationcodeview.
Related Issues (20)
- Autofill compatibility question HOT 12
- The lib can not run on Xcode 10 swift 4.2 HOT 4
- Secure Text entry option HOT 1
- secure text entry issue HOT 2
- Change content type HOT 1
- How to handle user errors? how to access fields data? HOT 1
- Textfield becomefirst responder HOT 2
- Tapping on the other textfields doesn't start the cursor from first field if it is empty HOT 4
- Textfield touch issue HOT 2
- Bug: cannot load view in storyboard HOT 1
- not able to get the text entered HOT 2
- keyboard HOT 1
- oneTimeCode HOT 1
- How to read the code entered in KWVerificationCodeView?
- auto read HOT 1
- How to set default value in OTPView ? HOT 2
- AutoFill on a UITextField is not working HOT 4
- Not support for older version HOT 3
- Increase Digits Count
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kwverificationcodeview.