Coder Social home page Coder Social logo

sunspension / vkpincodeview Goto Github PK

View Code? Open in Web Editor NEW
95.0 95.0 25.0 5.03 MB

VKPinCodeView is simple and elegant UI component for input PIN. You can easily customise appearance and get auto fill (OTP) iOS 12 feature right from the box.

License: MIT License

Swift 93.74% Ruby 3.96% Objective-C 2.31%

vkpincodeview's People

Contributors

eaceto avatar sunspension 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vkpincodeview's Issues

Extend interface to allow reading and setting code

Working with various methods of inputting codes (direct input, OTC SMS, deeplinking, ...), I currently have the need to programatically set a code in the VKPinCodeView.

Would that go against any design philosophies or thoughts on security or whatever?

Value of type 'VKPinCodeView' has no member 'setStyle'

There are project sources that compile on one computer and do not compile on another with the error above.
The first computer has these versions:
macOS Mojave and XCode 11.2.1
the second:
macOS Catalina Beta 10.15.2 (19C46a) and XCode 11.2.1
I have updated gem, cocoapods, pods...

Can't add toolbar above numberPad

I want to add a doneToolbar above numberPad to dismiss it when I want, but can't implement it, although I 've seen several tutorials. The code that I 've trying to implement is this:

let toolBar = UIToolbar(frame: CGRect(origin: .zero, size: .init(width: self.frame.size.width, height: 40)))

    let flexSpace = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil)
    let doneButton = UIBarButtonItem(title: "Done", style: .done, target: self, action: #selector(dismissNumberPad(_:)))
    
    toolBar.setItems([flexSpace, doneButton], animated: false)
    toolBar.sizeToFit()
    
    _textField.inputAccessoryView = toolBar

Any suggestions why is this happening?

Set Cursor Color

Hi, thanks for the great library.

Is there any option to set the cursor color? It would be nice if we provide that option.

I can try adding that functionality if you open pull requests :)

Best.

How to UI test it?

Hi, I am trying to type a security PIN in an XCTestCase but I could not do it so far.

Tried these both below, no success:

app.descendants(matching: .any)["securityPinView"].textFields.element(boundBy: 0).typeText("1111")
app.textFields["securityPinView"].typeText("1111")

Being securityPinView the accessibilityIdentifier value.

Please update the isError public

Thanks for this pod and all your effort.
I was using the older version (0.1.9) when I tried to update the pod to version(0.3.0).
I found out that isError variable is Private.
I'm doing the OTP code check at server side, so I have to wait for the API response to show error or proceed with my flow.
Could you please fix this or provide another solution for it?

Appreciate your quick response. Thanks!

Delay with animation of securing text

Can we make the 500 milliseconds configurable??

// secure text after a bit
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500), execute: {
if !(textField.text?.isEmpty ?? true) {
placeholderLabel.isHidden = true
if self.shouldSecureText { textField.text = self.secureCharacter }
}
})

VKPinCodeView freezes

Hello
there is an issue with this flow : when the screen which include VKPINCodeView appears and then another screen present and then I dismiss to go to the screen of VKPInCodeView again the screen freezes :(
note : sometimes with first dismiss and sometimes which second dismiss or when I repeat
this flow

Thanks for this pod and all your effort.

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.