SVG-to-SwiftUI
SVG-to-SwiftUI copied to clipboard
Tool to convert SVG to SwiftUI's Shape structure.
**Describe the bug** SVG rectangles with the `rx` attribute are converted to rectangles without rounded corners. **To Reproduce** ```svg ``` ```swift struct IconMinusShape: Shape { func path(in rect: CGRect) ->...
### Sample SVG: ```svg ``` ### Return value: ```swift struct MyCustomShape: Shape { func path(in rect: CGRect) -> Path { var path = Path() let width = rect.size.width let height...
Sample SVG: ``` ``` Return value: ``` struct MyCustomShape: Shape { func path(in rect: CGRect) -> Path { var path = Path() let width = rect.size.width let height = rect.size.height...
**Describe the bug** The shape has a few empty areas around lines but in SwiftUI those get filled. **SVG code which does not work with this tool** 
There is a y axis offset while converting, such as: ``` ```
When I upload a multicolor SVG icon it couldn't convert colors.
**SVG render** **SwiftUI render** **SVG** ```svg ``` **SwiftUI** ```swift struct MyCustomShape: Shape { func path(in rect: CGRect) -> Path { var path = Path() let width = rect.size.width let height...
Added handler for drawing polygon elements from SVG content