Comments (3)
That makes sense but it seems a little bit "tricky", if possible that would be great to build this feature, or provide some documentation in the README on how to achieve this.
from caishen.
Hey,
It should be possible to just use NumberInputTextField
for that.
Another option might be to subclass CardTextField
and override the moveCardNumberOut
method (currently only available on branch chore/number_animation_access
, PR pending) to call super. moveCardNumberOut
only when a certain card type has been detected (or any other condition you might have for this). Also you'd have to handle the validation result accordingly (accept invalid expiration date and cvc).
from caishen.
I see that especially hiding the CVC might be useful to have. I just created PR #63 which tackles this issue by adding an option to make the expiry and/or cvc required.
from caishen.
Related Issues (20)
- Not able to use Content Type in Credit Card UITextfield HOT 3
- Editing begin in Caishen text field HOT 1
- How to configure this pod for Xcode 8.3.3 project? HOT 1
- the placeholder is not visible HOT 4
- textFieldDidBeginEditing doesn't exist
- Valid Discover card displayed as invalid HOT 3
- Caishen causing crash
- Support new BIN ranges for MasterCard HOT 3
- I got error while runtime, I don't know exactly
- Readme Example GIF not working
- CVCInputTextField makes Field Disables HOT 1
- Variable length validation for cards HOT 2
- Does it support if User has format mm/yy in single Field? HOT 1
- Swift 5 update HOT 3
- Memory Leak and Crash HOT 1
- Allow only future year
- The last four digits of the credit card are not shown in the text field when prefill is used
- CardIO is archived, move away from CardIO in docs
- Test1
- Memory Leak and Crash with iOS17 HOT 1
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 caishen.