Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toMacaw for CGPath #689

Merged
merged 4 commits into from
Jun 2, 2020
Merged

Add toMacaw for CGPath #689

merged 4 commits into from
Jun 2, 2020

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