Comments (6)
got the 0.1.6 thank you @kpavankotesh .
from kwverificationcodeview.
@d33pak-s1ngh There aren't any mandatory properties you need to set to use KWVerificationCodeView. If not set, it takes the default values. Just make sure you set your constraints properly. It should work fine.
from kwverificationcodeview.
Well i have tried to add KWVerificationCodeView programatically but it is not working as expected check this image https://ibb.co/fr3gjd
Following is my code.
`import UIKit
import KWVerificationCodeView
class Test: UIViewController{
let verificationView : KWVerificationCodeView = {
let vv = KWVerificationCodeView()
vv.digits = 6
vv.translatesAutoresizingMaskIntoConstraints = false
return vv
}()
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .white
view.addSubview(verificationView)
verificationView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
verificationView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
verificationView.leadingAnchor.constraint(equalTo: view.leadingAnchor,constant: 8).isActive = true
verificationView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
}
}
`
can you please tell me what is wrong with above code. Or you can provide a sample code for adding KWVerificationView Programatically.
That will be very helpful.
Thank You.
from kwverificationcodeview.
@d33pak-s1ngh I made the init method public
to be able to programatically add KWVerificationCodeView. Please update your pod to latest version 0.1.6
I just published.
Also I've added a basic example on how to use the view programatically. You can refer the example for the same.
from kwverificationcodeview.
i am not getting version 0.1.6 when i do pod install pod 'KWVerificationCodeView'
i am still getting 0.1.5
so then i tried to add 'KWVerificationCodeView', '~> 0.1.6'
in my pod file which gives error.
from kwverificationcodeview.
@kpavankotesh One issue is that it is not working with auto layout constraints.
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
- getVerificationCode method returns string with whitespace. HOT 4
- 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.