-
Notifications
You must be signed in to change notification settings - Fork 93
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
Signature is blank image on iOS 16 #62
Comments
I'm also facing the same issue. When you try signing in iPhone 14Pro running with iOS 16.0 the signature image is being blank. |
@nishanega I fixed the problem by using YPDrawSignatureView. |
also facing this issue. |
I tried updating to 3.2.0 from 2.2.0 earlier and facing the same issue. So, I reverted back to 2.2.0 and it works now |
I found out that, this issue is with XCode not with this POD, I have tried using downloaded XCode Dmg and it works fine, but the XCode which I have downloaded from AppStore have the issue. So try using the downloaded XCode Dmg file. https://stackoverflow.com/questions/10335747/how-to-download-xcode-dmg-or-xip-file |
I have analyzed the issue. And it's pointing directly to PencilKit and object PKDrawing that is not able to create an UIImage from Data object. |
We encountered the issue as well and as per @Vanyaslav is appears to be caused by: /**
The UIImage representation of the signature. Read/write.
*/
open var signature: UIImage? {
get {
canvas.drawing.image(from: bounds, scale: 1.0)
}
set {
guard let data = newValue?.pngData(), let drawing = try? PKDrawing(data: data) else {
return
}
canvas.drawing = drawing
}
} Where I'm pretty sure |
direct way:
|
I think this (signature restore/load from an image) can be resolved by using UIImageView below the signature drawing view and adjusting clear/undo/redo code for this case. |
No description provided.
The text was updated successfully, but these errors were encountered: