jharwig / PPSSignatureView

iOS Signature Capture Demo
MIT License
1.04k stars 234 forks source link

The snapshot of the signatureView is always transparent. #18

Open dickverbunt opened 9 years ago

dickverbunt commented 9 years ago

Setting the background of the PPSSignatureView works but it when taking a snapshot it would not result in the same image with the correct background. It will always be transparent.

This is because the clearColor[3] property is only set at the beginning. To fix this I added the alpha to the -setBackgroundColor: method the value alpha was there already.

There was no way to set the background color of the snapshot. So you could end up with a view like this: signature_view And a snapshot like this: signature_snapshot

All and all not a big change but it makes a big difference for me. I'm very happy with this pod, thanks.

cwagdev commented 9 years ago

How are you calling setBackgroundColor:? I see it's in the @implementation but not on the header. Are you using KVC to get at it?