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

The snapshot of the signatureView is always transparent. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

The snapshot of the signatureView is always transparent. #18

wants to merge 1 commit into from

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.

None yet

2 participants