Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirming signature images contain signature strokes #48

Open
murjax opened this issue Feb 1, 2018 · 0 comments
Open

Confirming signature images contain signature strokes #48

murjax opened this issue Feb 1, 2018 · 0 comments

Comments

@murjax
Copy link

murjax commented Feb 1, 2018

I am using the epSignature delegate in the following:

let signatureVC = EPSignatureViewController(signatureDelegate: self)

if let signature = signatureView.getSignatureAsImage() {
    self.epSignature(signatureVC, didSign: signature, boundingRect: signatureView.getSignatureBoundsInCanvas())
}

I am checking for the existence of a signature before using it in the delegate. This works most of the time, and if my users do not attempt to sign then I can prevent the signature from being saved.

However I've seen blank signature images being saved lately. The user can simply tap on the signature view to generate the image, without ever drawing anything in the box. Is there a way to check the resulting image for strokes so I can prevent blank signature images from being saved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant