Over a million developers have joined DZone.

Capturing Signatures on iOS

· Mobile Zone

This is a nifty little piece to bookmark just in case you ever need to do any nice smooth line capturing:

Capture a Signature on iOS

The Square Engineering Blog has a great article on Smoother Signatures for Android, but I didn’t find anything specifically about iOS. So, what is the best way to capture a users signature on an iOS device?

Although I didn’t find any articles on signature capture, there are good implementations on the App Store. My target user experience was the iPad application Paper by 53, a drawing application with beautiful and responsive brushes.

All code is available in the Github repository: SignatureDemo

… Here is an example of the final output using quadratic bézier curves, and velocity based stroke thickness creating a visually appealing and natural signature.


Handy if you ever need it!

h/t: ManiacDev!


Published at DZone with permission of Alex Curylo , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}