{"id":30697547,"url":"https://github.com/richardpiazza/vectorplus","last_synced_at":"2026-02-19T18:05:43.453Z","repository":{"id":47721776,"uuid":"263333627","full_name":"richardpiazza/VectorPlus","owner":"richardpiazza","description":"A utility \u0026 library for converting SVG paths to Core Graphics images.","archived":false,"fork":false,"pushed_at":"2024-08-20T15:51:02.000Z","size":177,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T00:55:26.180Z","etag":null,"topics":["coregraphics","svg","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardpiazza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-12T12:44:20.000Z","updated_at":"2025-05-27T01:26:01.000Z","dependencies_parsed_at":"2024-08-21T04:34:15.177Z","dependency_job_id":null,"html_url":"https://github.com/richardpiazza/VectorPlus","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/richardpiazza/VectorPlus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardpiazza%2FVectorPlus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardpiazza%2FVectorPlus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardpiazza%2FVectorPlus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardpiazza%2FVectorPlus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardpiazza","download_url":"https://codeload.github.com/richardpiazza/VectorPlus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardpiazza%2FVectorPlus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273258912,"owners_count":25073817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coregraphics","svg","swift"],"created_at":"2025-09-02T09:12:47.716Z","updated_at":"2026-02-19T18:05:43.448Z","avatar_url":"https://github.com/richardpiazza.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VectorPlus\n\nA library \u0026 utility for interacting with SVG documents.\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Frichardpiazza%2FVectorPlus%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/richardpiazza/VectorPlus)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Frichardpiazza%2FVectorPlus%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/richardpiazza/VectorPlus)\n\n## Packages\n\n### VectorPlus\n\n**VectorPlus** acts primarily as a wrapper over `SwiftSVG` providing extensions for interacting with:\n\n* `CoreGraphics`\n* `UIKit`\n* `AppKit`\n* `SwiftUI`\n\nWhen linked to a target that supports one of these frameworks, multiple options become available.\n\n#### CoreGraphics\n\n* `CGMutablePath.addCommand(_:from:to:)`: Adds a `Path.Command` to the mutable path. The addition of the `Rect`s allow for correct placement and scaling.\n\n* `CGContext.render(path:from:to:) throws`: Rendered a `Path` in the given context. Uses information about _fills_ and _strokes_ to fill and/or stroke the path.\n\n#### UIKit\n\n* `SVG.uiImage(size:) -\u003e UIImage?`: A `CoreGraphics` rendered `UIImage` representation of the SVG paths.\n\n* `SVG.pngData(size:) -\u003e Data?`: A `Data` representation of the `UIImage`.\n\n* **`SVGImageView`**: A `UIImageView` subclass that supports the assignment of an `SVG` object. The `.image` will automatically be generated using the view `bounds`.\n\n#### AppKit\n\n* `SVG.nsImage(size:) -\u003e NSImage?`: A `CoreGraphics` rendered `NSImage` representation of the SVG paths.\n\n* `SVG.pngData(size:) -\u003e Data?`: A `Data` representation of the `NSImage`.\n\n#### SwiftUI\n\n* `SVGView(svg:)`: A `SwiftUI.View` that renders a `SVG` document.\n\n## Command Line Interface\n\n### Inspect\n\nParses an SVG document and prints out the document description.\n\n### Convert\n\nParses an SVG document and creates a PNG rendered version of the `Command`s.\n\nSupported conversion options are:\n\n* **absolute**: Translates all elements to 'absolute' paths.\n\n* **symbols**: Generates an Apple Symbols compatible SVG.\n\n* **uikit**: A `UIImageView` subclass that supports dynamic sizing.\n\n### Preview\n\n_macOS only_\n\nParses an SVG document displaying the results in an Application window. Do to limitations, this sub-command is only available when the `AppKit` framework is present.\n\n### Render\n\n_macOS only_\n\nParses an SVG document and creates a PNG rendered version of the `Command`s. Do to limitations, this sub-command is only available when the `AppKit` framework is present.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardpiazza%2Fvectorplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardpiazza%2Fvectorplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardpiazza%2Fvectorplus/lists"}