PPSSignatureView icon indicating copy to clipboard operation
PPSSignatureView copied to clipboard

The snapshot of the signatureView is always transparent.

Open dickverbunt opened this issue 10 years ago • 1 comments

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.

dickverbunt avatar Dec 05 '14 11:12 dickverbunt

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?

cwagdev avatar Aug 14 '15 23:08 cwagdev