From f42873d083da9044133509ccdda8afb0b43d8499 Mon Sep 17 00:00:00 2001 From: Marek Krzynowek Date: Wed, 24 May 2017 15:03:25 +0200 Subject: [PATCH] Added public access to the path data of the signature. --- Pod/Classes/EPSignatureView.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Pod/Classes/EPSignatureView.swift b/Pod/Classes/EPSignatureView.swift index 4062a3a..c577e87 100644 --- a/Pod/Classes/EPSignatureView.swift +++ b/Pod/Classes/EPSignatureView.swift @@ -134,14 +134,19 @@ open class EPSignatureView: UIView { } return nil } - + + /** Returns the drawn path as UIBezierPath. */ + open func getSignatureAsPath() -> UIBezierPath { + return bezierPath + } + /** Returns the rect of signature image drawn in the canvas. This can very very useful in croping out the unwanted empty areas in the signature image returned. */ open func getSignatureBoundsInCanvas() -> CGRect { return bezierPath.bounds } - + //MARK: Save load signature methods open func saveSignature(_ localPath: String) {