Skip to content

Conversation

@f3dm76
Copy link
Collaborator

@f3dm76 f3dm76 commented May 28, 2020

No description provided.

case .closeSubpath:
segment = PathSegment(type: .z)
@unknown default:
fatalError()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to add message to fatal error, like "Unknown segment type: " + element.type

segments.append(segment)
})

return Path(segments: segments, fillRule: .nonzero)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that CGPath doesn't have fill rule, but UIBezierPath have. In this case we need to support UIBezierPath.toMacaw() as well which will handle fill rule.

@ystrot ystrot self-assigned this May 28, 2020
@ystrot ystrot added this to the 0.9.7 milestone Jun 2, 2020
@ystrot ystrot merged commit b13d043 into exyte:master Jun 2, 2020
@f3dm76 f3dm76 deleted the task/path-from-cgpath branch June 3, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants