Git Product home page Git Product logo

Comments (6)

d33pak-s1ngh avatar d33pak-s1ngh commented on August 10, 2024 1

got the 0.1.6 thank you @kpavankotesh .

from kwverificationcodeview.

kpavankotesh avatar kpavankotesh commented on August 10, 2024

@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.

d33pak-s1ngh avatar d33pak-s1ngh commented on August 10, 2024

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.

kpavankotesh avatar kpavankotesh commented on August 10, 2024

@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.

d33pak-s1ngh avatar d33pak-s1ngh commented on August 10, 2024

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.

d33pak-s1ngh avatar d33pak-s1ngh commented on August 10, 2024

@kpavankotesh One issue is that it is not working with auto layout constraints.

from kwverificationcodeview.

Related Issues (20)

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.