{"repo":"onmyway133/Snowflake","free":true,"listed":false,"github":"https://github.com/onmyway133/Snowflake","clone":"git clone https://github.com/onmyway133/Snowflake.git","description":"❄️ SVG in Swift","language":"Swift","stars":964,"topics":["ios","swift","svg","rss","html","xml"],"license":null,"category":"mobile-apps","readme_excerpt":"Snowflake SVG rendering in Swift using native CALayer and UIBezierPath . Requirements - iOS 16+ - Swift 6 Installation Add to your Package.swift : Or in Xcode: File → Add Package Dependencies and enter the repository URL. Usage Document Create a Document from SVG data: The rendering pipeline is: SVG element → Shape → UIBezierPath → CALayer Shapes Each SVG element maps to a typed Item subclass: SVG element Swift type --- --- path Path circle Circle line Line polygon Polygon polyline Polyline rect Rectangle ellipse Ellipse text Text image Image Style Style attributes are read from both inline attributes and the style attribute: Animation Because Snowflake renders to CAShapeLayer , all layer properties are animatable: Or build your own: Layers and Scaling Get scaled CALayer objects directly: Get a UIView scaled to a given size: Image Supports base64 Data URI embedded images: Author Khoa Pham, onmyway133@gmail.com License Snowflake is available under the MIT license. See the LICENSE file for more info.","default_branch":null,"files":null,"tree":[],"storefront":"/r/onmyway133","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/onmyway133/Snowflake/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}