ipraba / epsignature Goto Github PK
View Code? Open in Web Editor NEWSignature component for iOS in Swift
License: MIT License
Signature component for iOS in Swift
License: MIT License
I'm using EPSignature 1.0.3 as a dependency of my private Cocoa Pod.
I've got several other dependencies in my pod spec file, all supporting Swift 4.
I cannot get my pod spec through lint validation if I include EPSignature as a dependency.
I'm getting the following errors when running pod spec lint
command:
- ERROR | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:42:117: error: argument of '#selector' refers to instance method 'onTouchCancelButton()' that is not exposed to Objective-C - NOTE | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:103:10: note: add '@objc' to expose this instance method to Objective-C - ERROR | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:46:113: error: argument of '#selector' refers to instance method 'onTouchDoneButton()' that is not exposed to Objective-C - NOTE | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:108:10: note: add '@objc' to expose this instance method to Objective-C - ERROR | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:48:115: error: argument of '#selector' refers to instance method 'onTouchClearButton()' that is not exposed to Objective-C - NOTE | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:144:10: note: add '@objc' to expose this instance method to Objective-C - ERROR | [iOS] xcodebuild: EPSignature/Pod/Classes/EPSignatureViewController.swift:60:123: error: argument of '#selector' refers to instance method 'onTouchActionButton' that is not exposed to Objective-C
These errors are related to Swift 3 to Swift 4 conversion.
Is there any expected time for EPSignature to support Swift 4?
Thanks and congrats on your work
Is there any way to crop the UIImage around the signature? Right now I end up with a large UIImage that is mostly empty. Thanks
Hi, this is an awesome tool, thanks for that.
I tried to set a background image view(already done before) like this:
let backgroundImage = UIImage(named: imageName)
let backgroundView = UIImageView(image: backgroundImage)
backgroundView.frame = signatureViewController.view.frame
signatureViewController.view.addSubview(backgroundView)
signatureViewController.view.sendSubviewToBack(backgroundView)
But it is just setted in a part of the screen.
Also could not make the navigation bar translucent
UINavigationController.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
UINavigationController.navigationBar.shadowImage = UIImage()
UINavigationController.view.backgroundColor = UIColor.clearColor()
UINavigationController.navigationBar.translucent = true
The above code is tested in my whole app, but cannot make it work for this component
thanks in advance
@ipraba, nice work! However, sometimes we need a dot with our signatures, currently, I am checking the Example in the Simulator, I can't add a dot. Please close this issue if it's working on the real device.
Thanks!
Hello and thanks for this library.
To replicate the issue i am facing to the following:
-> open app in portrait (device)
-> sign & accept & tap done
-> tap 'add my signature' again but now do that in landscape.
-> Load default signature
Now you will see that the image is not showing but if you tap Done it gets saved and it exits the view.
Also if you sign in portrait and then rotate in landscape the signature gets stretched.
If while stretched you try to sign again the signature returns to correct aspect ratio and but gets moved downwards.
hi @ipraba
Not compatible for carthage in 1.0.6.
$ carthage update --platform iOS
*** Cloning EPSignature
*** Checking out EPSignature at "1.0.6"
*** xcodebuild output can be found in /var/folders/mj/5zhy3sh11h18pdwrb4v04b300000gn/T/carthage-xcodebuild.nt0zDe.log
*** Skipped building EPSignature due to the error:
Dependency "EPSignature" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/ipraba/EPSignature/issues/new
Xcode is not recognizing signatureDelegate as a property of EPSignature
Hi,
I have a requirement of multiple signatures on one Screen using one VC. How can I differentiate delegate of each signature imageview? Is there some unique identifier like tag which I can use to identify which imageview should I update the sign in?
signature can be exported as svg format
This causes the build to fail using the "new" Xcode build system that is currently still in beta.
In old versions of iOS EPSignature is working properly but in iOS 13.2 the view controller appears like a popup and you can't draw anything because the finger movement closes the view.
To do that I extended EPSignatureViewController. But the problem is that signatureView: EPSignatureView! is not public and therefore I can't add image to it as subview.
I integrated EPSignature into Xcode project using Carthage and I received an error below.
Skipped building EPSignature due to the error:
Dependency "EPSignature" has no shared framework schemes for any of the platforms: iOS
Module compiled with Swift 3.0 cannot be imported in Swift 3.0.1: /Users/Apple/Library/Developer/Xcode/DerivedData/Spectra-fcknpapvuhgrqbbpgiobxuogsadu/Build/Products/Debug-iphoneos/EPSignature.framework/Modules/EPSignature.swiftmodule/arm64.swiftmodule
I am having this error when compiling in xcode 8.1
I cannot access to EPSignatureView to set width and color of the sign
Thanks
Hi, the library has a problem with the new build system:
Showing Recent Messages
๐ unexpected duplicate task: CompileXIB ..../Pods/EPSignature/Pod/Classes/EPSignatureViewController.xib (in target 'EPSignature')
Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1: /$(PROJECT_DIR)/EPSignature.framework/Modules/EPSignature.swiftmodule/arm64.swiftmodule
I am having this error while trying to build the module with Carthage. I used the following command in the terminal.
carthage update --platform iOS --no-use-binaries
Please assist on this.
This is a pedantic issue, a gramatically correct form for this:
optional func epSignature(_: EPSignatureViewController, didSigned signatureImage : UIImage, boundingRect: CGRect)
should be the following:
optional func epSignature(_: EPSignatureViewController, didSign signatureImage : UIImage, boundingRect: CGRect)
I want to show my custom images in the place of delete & done buttons in navigationItem.
How can I achieve this?
i want to do some process when user start sign ..
Hi, do you plan on adding support for Swift 2.3?
Please upgrade to frame work to swift 5 compatible.
Using the New Build System in Xcode, this pod fails. Please update with support
Unable to view signature in Xcode 11 and ios 13 or above.
Currently there is a method that returns the bounds of the signature without the extra whitespace from the signature view. That is great, but why, then, did you not implement a method that would return the signature without the extra whitespace?
With xcode 10 it gives
unexpected duplicate task: CompileXIB
/--/--/Pods/EPSignature/Pod/Classes/EPSignatureViewController.xib (in target 'EPSignature')
also unable to find duplicate only in compile files.
Settings could be in Embedded pods framework. But unable to find it
Would like a way to localize for Done / Cancel buttons.
Is there a way to change the size of the drawing space for the signature as a way to control the size of the signature drawn?
Hi there,
will there be a swift 3.0 branch of your code in the near future?
I am using the epSignature
delegate in the following:
let signatureVC = EPSignatureViewController(signatureDelegate: self)
if let signature = signatureView.getSignatureAsImage() {
self.epSignature(signatureVC, didSign: signature, boundingRect: signatureView.getSignatureBoundsInCanvas())
}
I am checking for the existence of a signature before using it in the delegate. This works most of the time, and if my users do not attempt to sign then I can prevent the signature from being saved.
However I've seen blank signature images being saved lately. The user can simply tap on the signature view to generate the image, without ever drawing anything in the box. Is there a way to check the resulting image for strokes so I can prevent blank signature images from being saved?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.