/SHFSignature

SHFSignature - Swift 3.0

Primary LanguageSwift

#SHFSignature

It's a simple class that provide to draw a signature and result in UIImage.

demo_signature

#How to use ?

Implement a protocol SHFSignatureProtocol in your UIViewController class or extension

protocol SHFSignatureProtocol {    
    func drawingSignature ()
    func image (_ signature: UIImage?) -> ()
}

In SHFSignatureProtocol there are two functions, the first method is returned during to drawing and second method returns the UIimage signature when you finished drawing. #and In your Storbyboard add UIView with subclass of SHFSignatureView, this class responds to protocol.

#That's simple and useful