Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
17 changes: 17 additions & 0 deletions Sources/Swift/SignatureDrawingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public class SignatureDrawingViewController: UIViewController {
fatalError("init(coder:) has not been implemented")
}

public override func loadView() {
let signatureView = SignatureView()
view = signatureView
}

/// Returns an image of the signature (with a transparent background).
public var fullSignatureImage: UIImage? {
return model.fullSignatureImage
Expand Down Expand Up @@ -186,3 +191,15 @@ extension Set where Element == UITouch {
return touch?.location(in: touch?.view)
}
}

// Fix iOS 13 conflict with new dismissing gesture
class SignatureView: UIView {

override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
if gestureRecognizer is UIPanGestureRecognizer {
return false
}
return true
}

}