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

</polygon> does not working this sample #7

Open
ghost opened this issue May 30, 2021 · 1 comment
Open

</polygon> does not working this sample #7

ghost opened this issue May 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented May 30, 2021

Sample SVG:

<polygon id="Path" points="7.608 12 2.906 14.472 3.804 9.236 0 5.528 5.257 4.764 7.608 0 9.959 4.764 15.216 5.528 11.412 9.236 12.31 14.472"></polygon>

Return value:

struct MyCustomShape: Shape {
    func path(in rect: CGRect) -> Path {
        var path = Path()
        let width = rect.size.width
        let height = rect.size.height
        
        return path
    }
}

is there any known issue with syntax?

@bring-shrubbery bring-shrubbery self-assigned this Jun 8, 2021
@bring-shrubbery bring-shrubbery added the enhancement New feature or request label Jun 8, 2021
@bring-shrubbery
Copy link
Owner

Hey, you can see this repo to see the list of the SVG elements that are supported. Currently <poligon> is one of the tags that is not supported. I'll try implement support for it when I have time, but you could also send a PR with your implementation to that repo ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant