PocketSVG
PocketSVG copied to clipboard
Easily convert your SVG files into CGPaths, CAShapeLayers, and UIBezierPaths
It appears that removing the spaces between Arc's `large-arc-flag`, `sweep-flag` and `x` is permitted by popular SVG renders. I can't find this in the SVG spec but web browsers and...
### Steps to reproduce the issue 1. i have svgpath string like this 2. `""` 3. i want to display this svg string in imageview. ### Specifications - PocketSVG Version:...
Hello, I am trying to create a coloring app. I can read svg image and fill their backgrounds. I want to save my UIBezier paths as svg after coloring process...
### Steps to reproduce the issue use any svg file that has an image tag as in the following link: https://drive.google.com/file/d/11vDTB7wA8-RU0XvrEd6-jHjX_qoUKjQR/view?usp=sharing note that the image has a shadow witch is...
``` func drawSVG(){ let svgURL = Bundle.main.url(forResource: "test123", withExtension: "svg")! let paths = SVGBezierPath.pathsFromSVG(at: svgURL) for (index, path) in paths.enumerated() { let shapeLayer = CAShapeLayer() shapeLayer.path = path.cgPath shapeLayer.fillColor =...
### Steps to reproduce the issue 1. I try to render this SVG file: "https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg" 2. Keep getting Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying:...
It might be useful if SVGLayer had a readonly property to access the path with the rendering transformation applied. ---- ## Original title: `path.contains(point)` correctly works only when SVGImageView contentMode...
Please consider adding Gradient support to PocketSVG. Right now, Gradients cause a crash due to expectation of fill color values instead of fill URLs. e.g. if I create a radial...
 I lost some SVG details when I updated the 2.7.3 version, See the code after sure is [https://github.com/pocketsvg/PocketSVG/commit/42078d1040cb35b45d9af167ad3aa88d8e69e4f2](url) the problems after the commit, I deleted this update and everything...
### Steps to reproduce the issue The test won't crash on iOS16, but it will crash on iOS14.6 Crash screenshot:   Has anyone come across it? Is there any...