1

Currently I have implemented a SignatureViewController using a PanGestureRecognizer, a BezierPath and the methods moveToPoint: and addLineToPoint:, as it can be found a thousand times on the web. But the curves are not drawn smooth, which is a problem for signatures.

Can anybody give me an ObjC example showing how to calculate the control points for the method

- (void)addCurveToPoint:(CGPoint)endPoint controlPoint1:(CGPoint)controlPoint1 controlPoint2:(CGPoint)controlPoint2;
dda
  • 6,030
  • 2
  • 25
  • 34
netshark1000
  • 7,245
  • 9
  • 59
  • 116
  • This [post](https://stackoverflow.com/questions/32829778/drawing-performance-over-time-for-a-uibezierpath-with-swift-for-ios) will be helpful. However, you have to do some optimizations – Lasantha Basnayake Sep 15 '19 at 07:40

1 Answers1

2

UIBezierPath having a property miterLimit by using this we can smooth curve.

Go through the flollowing link this is similar to your requirement. UIBezierPath not drawing a smooth curve

Hope it help's you.

Community
  • 1
  • 1
MadhuP
  • 2,019
  • 17
  • 22