Skip to content

The snapshot of the signatureView is always transparent.#18

Open
dickverbunt wants to merge 1 commit intojharwig:masterfrom
dickverbunt:master
Open

The snapshot of the signatureView is always transparent.#18
dickverbunt wants to merge 1 commit intojharwig:masterfrom
dickverbunt:master

Conversation

@dickverbunt
Copy link

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
Copy link

cwagdev commented Aug 14, 2015

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?

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

Successfully merging this pull request may close these issues.

2 participants