bezierpath-length icon indicating copy to clipboard operation
bezierpath-length copied to clipboard

A simple API to get the length of a CGPath, UIBezierPath or NSBezierPath, written in Swift.

Results 9 bezierpath-length issues
Sort by recently updated
recently updated
newest added

Fixed compiler error: "Converting non-escaping value to 'T' may allow it to escape"

https://github.com/louisdh/bezierpath-length/blob/b007af75ab55daabaf34c6e8d2081395730ec92b/Source/PathElement.swift#L61 `self.apply(info: unsafeBitCast(applier, to: UnsafeMutableRawPointer.self), function: unsafeBitCast(callback, to: CGPathApplierFunction.self))` This code throws a compiler error: "Converting non-escaping value to 'T' may allow it to escape" Any suggestions on how to...

fix(PathElement): fixed build issue with swift 4.2 as now @noescape is default, added @escape to PathApplier

``` let startPoint = CGPoint(x: 25, y: 100) let width:CGFloat = SCREEN_WIDTH - 50 let preHeight:CGFloat = 150.0 let increment = 0 var lastPoint:CGPoint = CGPoint.zero let count = 4...

Hi @louisdh , I noticed your api has a method for `.point(at:)`, but do you have an Idea of how to do the inverse? Calculate the `length`/`percentage` given the point...