Add a watermark to the signature
Overview
From version v3.6.0, the MobbSign SDK allowes the developers to add a watermark text along with the signature. That means that you can add a little text that will be set on the right-down corner of the stamped signature.
You can also add an image to the signature, if the text doesn't suit your integration. Through this document you will see how to do both processes.
How to add text
In order to add the text on the signature, you must call the method addTextToSign
once the signature has been acquired. For this porpuse, you should use the MobbSignView setOnSignatureAcquised
listener as below:
mobbSignView.onSignatureAcquised = {
let text = "The text you want to add."
mobbSignView.addText(toSign:text)
}
[mobbSignView setOnSignatureAcquised:^() {
NSString *text = @"The text you want to add.";
[mobbSignView addTextToSign:text];
}];
How to add an image
MobbSign also allowes you to add an image to the signature, if the text doesn't suit your integration or if you prefere to add your own personal image. As the previous case, you should do this on the setOnSignatureAcquised
listener as below:
mobbSignView.onSignatureAcquised = {
mobbSignView.stampImage = UIImage(named: "YOUR_IMAGE")
}
[mobbSignView setOnSignatureAcquised:^() {
[mobbSignView setStampImage:[UIImage imageNamed:@"YOUR_IMAGE"]];
}];