We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486152a commit 385339eCopy full SHA for 385339e
src/canvas.ios.ts
@@ -1779,13 +1779,15 @@ export class Canvas implements ICanvas {
1779
}
1780
private _drawPath(paint: Paint, ctx, path?) {
1781
let bPath: UIBezierPath;
1782
- let cgPath = path;
+ let cgPath;
1783
if (path instanceof Path) {
1784
bPath = path.getBPath();
1785
cgPath = path.getCGPath();
1786
} else if (path instanceof UIBezierPath) {
1787
bPath = path;
1788
cgPath = bPath.CGPath;
1789
+ } else {
1790
+ cgPath = path;
1791
1792
function createBPath() {
1793
if (!bPath) {
0 commit comments