Latest 1.1.1
Homepage https://github.com/TorIsHere/SignaturePad
License MIT
Platforms ios 9.0
Authors

Travis CI

Alt Text

Signature Pad using UIBezierPath written in Swift.

Features

  • [x] Free hand drawing pad
  • [x] Clear drawing pad
  • [x] Pen’s color selection
  • [ ] Pen’s size selection
  • [ ] Ink pen style signature

Installation

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

Usage

Change your view to custom view by simply put SignaturePad to your view.

Alt Text

Import

import SignaturePad

class ViewController: UIViewController {

    @IBOutlet weak var signaturePad: SignaturePad!
}

Clear

  signaturePad.clear()

Get signature

  if let signature = signaturePad.getSignature() {
      // Do Something
  }

Delegate


import SignaturePad

class ViewController: UIViewController, SignaturePadDelegate {

    @IBOutlet weak var signatureView: SignaturePad!  

    override func viewDidLoad() {
        super.viewDidLoad()
        self.signatureView.delegate = self
    }
    func didStart() {
    }

    func didFinish() {
    }
}

License

SignaturePad is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "SignaturePad",
    "version": "1.1.1",
    "summary": "A smooth signature pad with uibezierpath",
    "description": "A Smooth Signature Pad written in Swift. Utilizing UIBezierPath.",
    "homepage": "https://github.com/TorIsHere/SignaturePad",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "TorIsHere": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TorIsHere/SignaturePad.git",
        "tag": "1.1.1"
    },
    "source_files": [
        "SignaturePad",
        "SignaturePad/**/*.{h,m}"
    ],
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "platforms": {
        "ios": "9.0"
    }
}

Pin It on Pinterest

Share This