A simple toolkit for displaying and manipulating SVGs on iOS and macOS in a performant manner. The goal of this project is not to be a fully compliant SVG parser/renderer. But rather to use SVG as a format for serializing CG/UIPaths, meaning it only supports SVG features that can be represented by CG/UIPaths. Thoroughly documented.
Features
- Support for SVG elements: path, line, polyline, polygon, rect, circle, ellipse
- Support for SVG named colors
- Fully working iOS and macOS demos
- Straightforward API for typical SVG rendering as a UIImageView/NSImageView or CALayer subclass
- Access every shape within your SVG as a CGPath for more fine-grained manipulation
- Render an SVG file using SVGImageView
Categories
LibrariesLicense
MIT LicenseFollow PocketSVG
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of PocketSVG!