Skip to content

Commit

Permalink
Merge pull request #33 from GJNilsen/DotPatch
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
GJ Nilsen authored May 2, 2017
2 parents 8c13362 + 2a8ba09 commit e688e0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ YPDrawSignatureView is available under the MIT license. See the [LICENSE](LICENS

## Update history

### v1.0 - 9/12/16
### v1.0.1 - 5/2/17

* Minor bugfix

#### v1.0 - 9/12/16

* More Swifty API
* Supports Swift 3
2 changes: 1 addition & 1 deletion SignatureTest/SignatureTest/YPDrawSignatureView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class YPDrawSignatureView: UIView {
}

override public func touchesEnded(_ touches: Set <UITouch>, with event: UIEvent?) {
if self.controlPoint == 0 {
if self.controlPoint < 4 {
let touchPoint = self.points[0]
self.path.move(to: CGPoint(x: touchPoint.x-1.0,y: touchPoint.y))
self.path.addLine(to: CGPoint(x: touchPoint.x+1.0,y: touchPoint.y))
Expand Down
2 changes: 1 addition & 1 deletion Sources/YPDrawSignatureView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class YPDrawSignatureView: UIView {
}

override public func touchesEnded(_ touches: Set <UITouch>, with event: UIEvent?) {
if self.controlPoint == 0 {
if self.controlPoint < 4 {
let touchPoint = self.points[0]
self.path.move(to: CGPoint(x: touchPoint.x-1.0,y: touchPoint.y))
self.path.addLine(to: CGPoint(x: touchPoint.x+1.0,y: touchPoint.y))
Expand Down

0 comments on commit e688e0c

Please sign in to comment.