Signature Pad using UIBezierPath written in Swift.
- Free hand drawing pad
- Clear drawing pad
- Pen's color selection
- Pen's size selection
- Ink pen style signature
CocoaPods is a dependency manager for Cocoa projects.
You can use CocoaPods to install SignaturePad by adding it to your Podfile:
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod 'SignaturePad', '~> 1.0.3'
end
Then, run the following command:
$ pod install
Change your view to custom view by simply put SignaturePad to your view.
import SignaturePad
class ViewController: UIViewController {
@IBOutlet weak var signaturePad: SignaturePad!
}
signaturePad.clear()
if let signature = signaturePad.getSignature() {
// Do Something
}
import SignaturePad
class ViewController: UIViewController, SignaturePadDelegate {
@IBOutlet weak var signatureView: SignaturePad!
override func viewDidLoad() {
super.viewDidLoad()
self.signatureView.delegate = self
}
func didStart() {
}
func didFinish() {
}
}
SignaturePad is released under the MIT license. See LICENSE for details.