sig

SignatureView

UI component for capturing signature.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

76

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

SignatureView

Twitter License CocoaPods

UI component for capturing signature.

License

Source code of this project is available under the standard MIT license. Please see the license file.

Usage

To see a quick demo, simply type pod try SignatureView.

Initialize SignatureView from nib or programmatically:

CGRect frame = CGRectMake(0, 40, 320, 300);
id view = [[SignatureView alloc] initWithFrame:frame];
[self.view addSubview:view];
self.signatureView = view;

Customization

You can customzie following attributes:

Line Color

self.signatureView.foregroundLineColor = [UIColor redColor];
self.signatureView.backgroundLineColor = [UIColor blueColor];

Line Width

self.signatureView.foregroundLineWidth = 3.0;
self.signatureView.backgroundLineWidth = 3.0;

Signature

A signature image can be retrieved by UIImage object:

UIImage *signature = [self.signatureView signatureImage];

or by PNG representation:

NSData *signatureData = [self.signatureView signatureData];

Clearing

SignatureView comes with a UILongPressGestureRecognizer which is responsible for clearning its view;

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b new-feature).
  3. Commit your changes (git commit -am 'Added new-feature').
  4. Push to the branch (git push origin new-feature).
  5. Create new Pull Request.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100