Skip to content

freddietilley/SmallSVGRep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standalone svg image rep for macOS

This is a standalone svg image rep for macOS written in Objective-C. The idea behind it was to have svg image support without the least external dependencies possible.

Note however that it is by no means complete yet.

It is loosely based on older work on PocketSVG by Martin Haywood, Bob Monaghan, John Blanco

Basic Usage

To use in your own projects, import the SVGImageRep class and header into your project.

#import "SVGImageRep.h"

Register the image rep as early in the application execution as possible

[NSImageRep registerImageRepClass: [SVGImageRep class]];

After registration svg images can be loaded as you would expect.

NSImage *testImage = [NSImage imageNamed: @"SVG_logo"];

For more information and a working sample check out the XCode project.

The SVG_logo.svg sample image is licenced under the CC 2.5.

License

BSD (Berkeley Software Distribution) License. Copyright (c) 2017, Impending

About

Standalone svg image rep for macOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published