Giter Site home page Giter Site logo

patmei-ids / signaturepad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from torishere/signaturepad

0.0 0.0 0.0 130 KB

Signature pad using UIBezierPath written in Swift.

License: MIT License

Ruby 30.70% Swift 63.61% Objective-C 4.88% Shell 0.81%

signaturepad's Introduction

Travis CI

SignaturePad

Alt Text

Signature Pad using UIBezierPath written in Swift.

Features

  • Free hand drawing pad
  • Clear drawing pad
  • 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.

signaturepad's People

Contributors

torishere avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.